module

Phosphor::CLI

Entry point for the phosphor CLI binary (see targets.phosphor in shard.yml). Scaffolds new projects and adds screens to existing ones — it does not depend on the rest of the Phosphor framework at all, since it only ever writes Crystal source as text, never renders a TUI itself.

Constants

HELP = "phosphor — scaffolding CLI for the phosphor TUI framework\n\nUsage:\n phosphor new <app_name> [--force]\n phosphor generate screen <screen_name> [--force]\n\nCommands:\n new Scaffold a new phosphor project in ./<app_name>\n generate screen Add a new Screen to the project in the current directory"

Class methods

run(args : Array(String)) : Void

Dispatches args (typically ARGV) to the matching subcommand.

Prints the help text and exits 0 for no arguments, or 1 for an unrecognised command.

Source

Nested types