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
Command name alises/shortcuts
App name is "hx {name}"
Find a specific command or return null
List installed commands
Log name is "hx"
Command name
Print a line to stdout
Run the command
Single line summary of the command for help
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