abstract class fanr::Command
Command implements a top-level command in the fanr command line tool.
Commands declare their options using the
CommandOpt facet which works similiar to
AbstractMain. If the field is a Bool, then the option is treated as a flag option. Otherwise it must be one of these types: Str, Uri.
Ask for y/n confirmation or skip if
Get the local environment to use this command
Throw an exception which may be used to unwind the stack back to main to indicate command failed and return non-zero
Option to dump full stack trace on errors
abstract Str name()
Name of command
OutStream out := Env.cur().out
Stdout for printing command output
Password for authentication
Get the repo to use for this command:
- default is config prop "repo"
- override with "-r" option
Repository URI -r option
abstract Void run()
Execute command. If there is a failure then throw
err, otherwise the command is assumed to be successful.
Option to skip confirmation (auto yes)
abstract Str summary()
Short summary of command for usage screen
Print usage to given output stream
Username for authentication
Log a warning to