HxCli
abstract class HxCli : AbstractMain
Haxall command line interface. To create a new hx command:
- Define subclass of HxCli
- Register type qname via indexed prop as "hx.cli"
- Annotate options and args using AbstractMain design
Single line summary of the command for help
Print a line to stdout
Command name alises/shortcuts
Log name is "hx"
App name is "hx {name}"
Find a specific command or return null
Command name
Run the command
List installed commands
virtual Str[] aliases()
Command name alises/shortcuts
Str appName()
App name is "hx {name}"
static HxCli? find(Str name)
Find a specific command or return null
static HxCli[] list()
List installed commands
virtual Log log()
Log name is "hx"
abstract Str name()
Command name
Void printLine(Str line)
Print a line to stdout
abstract Int run()
Run the command. Return zero on success
abstract Str summary()
Single line summary of the command for help