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.Console
console
protected com.beust.jcommander.JCommander
jc
protected Command
selectedCommand
protected Map<String,Command>
subCommands
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSubCommand(Command cmd)
String
getName()
String
getUsage()
protected YamcsAdminCli
getYamcsAdminCli()
void
parse(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()
-
-