From 33cd8be45b3c5fad3230e1a42d00046be0065ce7 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 4 Jul 2024 23:38:44 -0300 Subject: [PATCH] Some debug info --- src/commands/new.cr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/new.cr b/src/commands/new.cr index 4e60a52..9c31307 100644 --- a/src/commands/new.cr +++ b/src/commands/new.cr @@ -5,8 +5,11 @@ module Faaso # Creates a new empty funko out of a given runtime struct New @@known : Array(String) = {{`find ./runtimes -type d -mindepth 1`.split('\n').reject(&.empty?)}} + @@filelist : Array(String) = {{`find ./runtimes -type f -mindepth 1`.split('\n').reject(&.empty?)}} def run(options, folder) + Log.debug { "@@known: #{@@known}"} + Log.debug { "@@filelist: #{@@filelist}"} if options["-r"].as(String) == "list" Log.info { "Crystal has some included runtimes:\n" } @@known.each do |runtime|