/** * Adds the configuration file argument for the configured command. * @param subparser The subparser to register the argument on * @return the register argument */ protected Argument addFileArgument(Subparser subparser) { return subparser.addArgument("file") .nargs("?") .help("application configuration file"); }
public HostRegisterCommand(final Subparser parser) { super(parser); parser.help("register a host"); hostArg = parser.addArgument("host") .help("The hostname of the agent you want to register with the Helios masters."); idArg = parser.addArgument("id") .help("A unique ID for this host."); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("--migrations") .dest("migrations-file") .help("the file containing the Liquibase migrations for the application"); subparser.addArgument("--catalog") .dest("catalog") .help("Specify the database catalog (use database default if omitted)"); subparser.addArgument("--schema") .dest("schema") .help("Specify the database schema (use database default if omitted)"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("id").nargs(1).help("change set id"); subparser.addArgument("author").nargs(1).help("author name"); }
public JobHistoryCommand(Subparser parser) { super(parser); parser.help("see the run history of a job"); jobIdArg = parser.addArgument("jobid") .help("Job id"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("-i", "--include-default") .action(Arguments.storeTrue()) .dest("include-default") .help("Also render the template with the default name"); subparser.addArgument("names").nargs("*"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("output").nargs(1).help("output directory"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("-c", "--count") .dest("count") .type(Integer.class) .help("limit script to the specified number of pending change sets"); subparser.addArgument("-i", "--include") .action(Arguments.append()) .dest("contexts") .help("include change sets from the given context"); }
public JobStartCommand(Subparser parser) { super(parser); parser.help("start a stopped job"); hostsArg = parser.addArgument("hosts") .nargs("+") .help("The hosts to start the job on."); tokenArg = parser.addArgument("--token") .nargs("?") .setDefault("") .help("Insecure access token"); }
public DeploymentGroupInspectCommand(final Subparser parser) { super(parser); parser.help("inspect a deployment group"); nameArg = parser.addArgument("name") .required(true) .help("Deployment group name"); }
public JobStopCommand(Subparser parser) { super(parser); parser.help("stop a running job without undeploying it"); hostsArg = parser.addArgument("hosts") .nargs("+") .help("The hosts to stop the job on."); tokenArg = parser.addArgument("--token") .nargs("?") .setDefault("") .help("Insecure access token"); }
public DeploymentGroupStopCommand(final Subparser parser) { super(parser); parser.help("Stop a deployment-group or abort a rolling-update"); nameArg = parser.addArgument("name") .required(true) .help("Deployment group name"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("-v", "--verbose") .action(Arguments.storeTrue()) .dest("verbose") .help("Output verbose information"); subparser.addArgument("-i", "--include") .action(Arguments.append()) .dest("contexts") .help("include change sets from the given context"); }
public JobRemoveCommand(Subparser parser) { super(parser); parser.help("remove a job"); tokenArg = parser.addArgument("--token") .nargs("?") .setDefault("") .help("Insecure access token"); yesArg = parser.addArgument("--yes") .action(Arguments.storeTrue()) .help("Automatically answer 'yes' to the interactive prompt."); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("--confirm-delete-everything") .action(Arguments.storeTrue()) .required(true) .help("indicate you understand this deletes everything in your database"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("tag-name") .dest("tag-name") .nargs(1) .required(true) .help("The tag name"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("-i", "--include") .action(Arguments.append()) .dest("contexts") .help("include change sets from the given context"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("-n", "--dry-run") .action(Arguments.storeTrue()) .dest("dry-run") .setDefault(Boolean.FALSE) .help("output the DDL to stdout, don't run it"); subparser.addArgument("-c", "--count") .type(Integer.class) .dest("count") .help("only apply the next N change sets"); subparser.addArgument("-i", "--include") .action(Arguments.append()) .dest("contexts") .help("include change sets from the given context"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("-l", "--list") .dest("list") .action(Arguments.storeTrue()) .setDefault(Boolean.FALSE) .help("list all open locks"); subparser.addArgument("-r", "--force-release") .dest("release") .action(Arguments.storeTrue()) .setDefault(Boolean.FALSE) .help("forcibly release all open locks"); }
@Override public void configure(Subparser subparser) { super.configure(subparser); subparser.addArgument("-n", "--dry-run") .action(Arguments.storeTrue()) .dest("dry-run") .setDefault(Boolean.FALSE) .help("output the DDL to stdout, don't run it"); subparser.addArgument("-a", "--all") .action(Arguments.storeTrue()) .dest("all") .setDefault(Boolean.FALSE) .help("mark all pending change sets as applied"); subparser.addArgument("-i", "--include") .action(Arguments.append()) .dest("contexts") .help("include change sets from the given context"); }