Top Level Namespace
Defined in:
Method Summary
-
binary_name(file : String) : String
Get the base name of a crystal file for use as binary name Ex.
-
clear_bin_dir : Nil
Delete all items from bin/ USE WITH CAUTION
-
ensure_bin_dir : Nil
Ensure bin directory exists in current directory.
-
get_files(dir : String, ext : Array(String), &block : String -> ) : Nil
Calls block on each file in directory that matches an extension in provided list
-
get_files(dir : String, &block : String -> ) : Nil
Calls block on each file in directory
-
recurse(mode : Symbol, dir : String, &block : String -> ) : Nil
Recurses a directory and calls the block on each item depending on mode mode can be :all, :dir, or :file :dir ignores files, :file ignores directories
-
recurse_files(dir : String, ext : Array(String), &block : String -> ) : Nil
Recurses a directory and calls the block on each file if it matches an extension in provided array
-
release_build(src : String, bin : String, opt : String = "") : Nil
Build binary with name bin using src
-
run_binary(bin : String, input : String, log : String) : Nil
Run binary with input string and output to log file
-
run_script(interpreter : String, file : String, log : String) : Nil
Run script using interpreter and output to log file
Method Detail
Get the base name of a crystal file for use as binary name Ex. /path/to/file.cr => file
Ensure bin directory exists in current directory. If bin already exists, no error is raised.
Calls block on each file in directory that matches an extension in provided list
Recurses a directory and calls the block on each item depending on mode mode can be :all, :dir, or :file :dir ignores files, :file ignores directories
Recurses a directory and calls the block on each file if it matches an extension in provided array
Build binary with name bin using src
Run binary with input string and output to log file
Run script using interpreter and output to log file