type

HxCli

abstract class HxCli : AbstractMain

Haxall command line interface. To create a new hx command:

  1. Define subclass of HxCli
  2. Register type qname via indexed prop as "hx.cli"
  3. 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

static HxCli? find(Str name)

Find a specific command or return null

list

static HxCli[] list()

List installed commands

log

virtual override Log log()

Log name is "hx"

name

abstract Str name()

Command name

printLine

Void printLine(Str line := "")

Print a line to stdout

run

abstract override Int run()

Run the command. Return zero on success

summary

abstract Str summary()

Single line summary of the command for help