type
FancCmd
abstract class FancCmd : AbstractMain
Fantom CLI compiler command plugin. To create:
- Define subclass of FancCmd
- Register type qname via indexed prop as "fanc.cmd" (if not in this pod)
- Annotate options and args using
AbstractMaindesign
methods
| aliases |
Command name alises/shortcuts |
|---|---|
| appName |
App name is "fanc {name}" |
| err |
Print error message and return 1 |
| find |
Find a specific command or return null |
| info |
Print info message |
| list |
List installed commands |
| log |
Log name is "fanc" |
| name |
Command name |
| names |
Name and aliases |
| printLine |
Print a line to stdout |
| promptConfirm |
Prompt for a confirm yes/no |
| 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 "fanc {name}"
err
find
info
list
static FancCmd[] list()
List installed commands
log
virtual override Log log()
Log name is "fanc"
name
abstract Str name()
Command name
names
Str[] names()
Name and aliases
printLine
promptConfirm
run
abstract override Int run()
Run the command. Return zero on success
summary
abstract Str summary()
Single line summary of the command for help