Skip to content

class Crystal::Command
inherits Reference

Constants

COMMANDS_USAGE = "Usage: crystal tool [tool] [switches] [program file] [--] [arguments]\n\nTool:\n context show context for given location\n expand show macro expansion for given location\n format format project, directories and/or files\n hierarchy show type hierarchy\n implementations show implementations for given call in location\n types show type of main variables\n --help, -h show this help"

USAGE = "Usage: crystal [command] [switches] [program file] [--] [arguments]\n\nCommand:\n init generate a new project\n build build an executable\n docs generate documentation\n env print Crystal environment information\n eval eval code from args or standard input\n play starts Crystal playground server\n run (default) build and run program\n spec build and run specs (in spec directory)\n tool run a tool\n help, --help, -h show this help\n version, --version, -v show version\n\nRun a command followed by --help to see command specific information, ex:\n crystal <command> --help"

Class methods

.run(options = ARGV)

View source

.new(options : Array(String))

View source

Methods

#report_warnings

View source

#warnings_fail_on_exit?

View source