small fixes and cleanup

This commit is contained in:
Chelsea Holland Komlo 2017-08-23 22:52:31 +00:00
parent ed2a544502
commit 8d4b963151
5 changed files with 11 additions and 10 deletions

View File

@ -1,7 +1,6 @@
## 0.6.1 (Unreleased)
IMPROVEMENTS:
* cli: Add autocomplete functionality for flags for all CLI command [GH 3087]
* core: Add autocomplete functionality for resources: allocations,
evaluations, jobs, and nodes [GH-2964]
* core: `distinct_property` constraint can set the number of allocations that
@ -12,6 +11,7 @@ IMPROVEMENTS:
* api: Redact Vault.Token from AgentSelf response [GH-2988]
* cli: node-status displays node version [GH-3002]
* cli: Disable color output when STDOUT is not a TTY [GH-3057]
* cli: Add autocomplete functionality for flags for all CLI command [GH 3087]
* client: Unmount task directories when alloc is terminal [GH-3006]
* client/template: Allow template to set Vault grace [GH-2947]
* client/template: Template emits events explaining why it is blocked [GH-3001]

View File

@ -61,12 +61,13 @@ func (c *AllocStatusCommand) Synopsis() string {
}
func (c *AllocStatusCommand) AutocompleteFlags() complete.Flags {
return complete.Flags{
"-short": complete.PredictNothing,
"-verbose": complete.PredictNothing,
"-json": complete.PredictNothing,
"-t": complete.PredictAnything,
}
return mergeAutocompleteFlags(c.Meta.AutocompleteFlags(FlagSetClient),
complete.Flags{
"-short": complete.PredictNothing,
"-verbose": complete.PredictNothing,
"-json": complete.PredictNothing,
"-t": complete.PredictAnything,
})
}
func (c *AllocStatusCommand) AutocompleteArgs() complete.Predictor {

View File

@ -115,7 +115,7 @@ func (c *ClientConfigCommand) AutocompleteFlags() complete.Flags {
return mergeAutocompleteFlags(c.Meta.AutocompleteFlags(FlagSetClient),
complete.Flags{
"-servers": complete.PredictNothing,
"-update-servers": complete.PredictNothing,
"-update-servers": complete.PredictAnything,
})
}

View File

@ -32,7 +32,7 @@ Pause Options:
}
func (c *DeploymentPauseCommand) Synopsis() string {
return "Pause a deployment."
return "Pause a deployment"
}
func (c *DeploymentPauseCommand) AutocompleteFlags() complete.Flags {

View File

@ -48,7 +48,7 @@ Promote Options:
}
func (c *DeploymentPromoteCommand) Synopsis() string {
return "Promote canaries in a deployment."
return "Promote canaries in a deployment"
}
func (c *DeploymentPromoteCommand) AutocompleteFlags() complete.Flags {