type
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
methods
aliases |
Command name alises/shortcuts |
---|---|
appName |
App name is "hx {name}" |
find |
Find a specific command or return null |
list |
List installed commands |
log |
Log name is "hx" |
name |
Command name |
printLine |
Print a line to stdout |
run |
Run the command. |
summary |
Single line summary of the command for help |
Slot Details
aliases
virtual Str[] aliases()
Command name alises/shortcuts
appName
override Str appName()
App name is "hx {name}"
find
list
static HxCli[] list()
List installed commands
log
virtual override Log log()
Log name is "hx"
name
abstract Str name()
Command name
printLine
run
abstract override Int run()
Run the command. Return zero on success
summary
abstract Str summary()
Single line summary of the command for help