Package org.yamcs.cli
Class Command
- java.lang.Object
-
- org.yamcs.cli.Command
-
- Direct Known Subclasses:
BackupCli,BackupCli.BackupDelete,BackupCli.BackupPurge,CheckConfig,MdbCli,ParameterArchiveCli,PasswordHashCli,RocksDbCli,UsersCli,YamcsAdminCli
public abstract class Command extends Object
This represents a command together with its options and subcommandsyamcs <options> subcmd <options> subcmd <options>...
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.beust.jcommander.internal.Consoleconsoleprotected com.beust.jcommander.JCommanderjcprotected CommandselectedCommandprotected Map<String,Command>subCommands
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSubCommand(Command cmd)StringgetName()StringgetUsage()protected YamcsAdminCligetYamcsAdminCli()voidparse(String... args)
-
-
-
Method Detail
-
addSubCommand
protected void addSubCommand(Command cmd)
-
getYamcsAdminCli
protected YamcsAdminCli getYamcsAdminCli()
-
parse
public void parse(String... args)
-
getName
public String getName()
-
getUsage
public String getUsage()
-
-