public JobInspectCommand(final Subparser parser) { super(parser); parser.help("print the configuration of a job"); }
public DeploymentGroupListCommand(final Subparser parser) { super(parser); parser.help("list deployment groups"); }
public JobInspectCommand(final Subparser parser, final TimeZone timeZone) { super(parser); DATE_FORMATTER.setTimeZone(timeZone); parser.help("print the configuration of a job"); }
public JobHistoryCommand(Subparser parser) { super(parser); parser.help("see the run history of a job"); jobIdArg = parser.addArgument("jobid") .help("Job id"); }
public DeploymentGroupInspectCommand(final Subparser parser) { super(parser); parser.help("inspect a deployment group"); nameArg = parser.addArgument("name") .required(true) .help("Deployment group name"); }
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"); }
public DeploymentGroupRemoveCommand(final Subparser parser) { super(parser); parser.help("remove a deployment-group. Note that this does not undeploy jobs previously " + "deployed by the deployment-group"); nameArg = parser.addArgument("deployment-group-name") .required(true) .help("Deployment group name"); }
public MasterListCommand(Subparser parser) { super(parser); parser.help("list masters"); fullArg = parser.addArgument("-f") .action(storeTrue()) .help("Print full hostnames"); }
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."); }
public HostDeregisterCommand(Subparser parser) { super(parser); parser.help("deregister a host"); hostArg = parser.addArgument("host") .help("Host name to deregister."); yesArg = parser.addArgument("--yes") .action(Arguments.storeTrue()) .help("Automatically answer 'yes' to the interactive prompt."); }
public DeploymentGroupStatusCommand(final Subparser parser) { super(parser); parser.help("Show deployment-group status"); nameArg = parser.addArgument("name") .required(true) .help("Deployment group name"); fullArg = parser.addArgument("-f") .action(storeTrue()) .help("Print full hostnames and job ids."); }
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 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 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."); }
public JobStatusCommand(final Subparser parser) { super(parser); parser.help("show job or host status"); jobArg = parser.addArgument("-j", "--job") .help("Job filter"); hostArg = parser.addArgument("--host") .setDefault("") .help("Host pattern"); fullArg = parser.addArgument("-f") .action(storeTrue()) .help("Print full hostnames, job and container id's."); }
public DeploymentGroupWatchCommand(Subparser parser) { super(parser); parser.help("watch deployment groups"); nameArg = parser.addArgument("name") .help("Deployment group name"); fullArg = parser.addArgument("-f") .action(storeTrue()) .help("Print full hostnames and job ids."); intervalArg = parser.addArgument("--interval") .type(Integer.class) .setDefault(1) .help("polling interval, default 1 second"); }
public DeploymentGroupCreateCommand(final Subparser parser) { super(parser); parser.help("create a deployment group"); nameArg = parser.addArgument("name") .required(true) .help("Deployment group name"); hostSelectorsArg = parser.addArgument("host_selectors") .action(append()) .setDefault(Lists.newArrayList()) .nargs("+") .help("Host selector expression. Hosts matching this expression will be part of the " + "deployment-group. Multiple conditions can be specified, separated by spaces (as " + "separate arguments). If multiple conditions are given, all must be fulfilled. " + "Operators supported are =, !=, in and notin. Example: foo=bar baz!=qux"); quietArg = parser.addArgument("-q") .action(storeTrue()) .help("only print job id"); }
public JobWatchCommand(Subparser parser) { super(parser); parser.help("watch jobs"); jobsArg = parser.addArgument("job") .help("Job reference"); intervalArg = parser.addArgument("--interval") .type(Integer.class) .setDefault(1) .help("polling interval, default 1 second"); prefixesArg = parser.addArgument("hosts") .nargs("*") .help("The hostname prefixes to watch the job on."); exactArg = parser.addArgument("--exact") .action(storeTrue()) .help("Show status of job for every host in hosts"); }
public JobListCommand(final Subparser parser) { super(parser); parser.help("list jobs"); patternArg = parser.addArgument("pattern") .nargs("?") .help("Job reference to filter on"); fullArg = parser.addArgument("-f") .action(storeTrue()) .help("Print full job id's."); quietArg = parser.addArgument("-q") .action(storeTrue()) .help("only print job id's"); deployedArg = parser.addArgument("-y") .action(storeTrue()) .help("only show deployed jobs"); }
public JobUndeployCommand(final Subparser parser) { super(parser); parser.help("undeploy a job from hosts"); hostsArg = parser.addArgument("hosts") .nargs("*") .help("The hosts to undeploy the job from."); tokenArg = parser.addArgument("--token") .nargs("?") .setDefault("") .help("Insecure access token"); allArg = parser.addArgument("-a", "--all") .action(storeTrue()) .help("Undeploy from all currently deployed hosts."); yesArg = parser.addArgument("--yes") .action(storeTrue()) .help("Automatically answer 'yes' to the interactive prompt."); }