cli: namespace apply should autocomplete hcl files

This commit is contained in:
Michael Schurter 2022-03-04 12:58:17 -08:00
parent a466f01120
commit e8a5258ad4
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,11 @@ func (c *NamespaceApplyCommand) AutocompleteFlags() complete.Flags {
}
func (c *NamespaceApplyCommand) AutocompleteArgs() complete.Predictor {
return NamespacePredictor(c.Meta.Client, nil)
return complete.PredictOr(
NamespacePredictor(c.Meta.Client, nil),
complete.PredictFiles("*.hcl"),
complete.PredictFiles("*.json"),
)
}
func (c *NamespaceApplyCommand) Synopsis() string {