Package org.yamcs.cli
Class Command
java.lang.Object
org.yamcs.cli.Command
- Direct Known Subclasses:
BackupCli,BackupCli.BackupDelete,BackupCli.BackupPurge,CheckConfig,MdbCli,PasswordHashCli,RocksDbCli,UsersCli,YamcsAdminCli
This represents a command together with its options and subcommands
yamcs <options> subcmd <options> subcmd <options>...
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static IntFunction<Void>protected com.beust.jcommander.JCommanderprotected final Commandprotected Command -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSubCommand(Command cmd) protected static voidexit(int status) getName()getUsage()voidvoidsetConsole(com.beust.jcommander.internal.Console console)
-
Field Details
-
exitFunction
-
jc
protected com.beust.jcommander.JCommander jc -
subCommands
-
selectedCommand
-
parent
-
-
Constructor Details
-
Command
-
-
Method Details
-
setConsole
public void setConsole(com.beust.jcommander.internal.Console console) -
addSubCommand
-
parse
-
getName
-
getUsage
-
exit
protected static void exit(int status)
-