From 314f4c48fc5adcfdf60f57dc77c39f5340cd9aed Mon Sep 17 00:00:00 2001 From: Matthieu Guilbert Date: Tue, 24 Mar 2020 14:04:58 +0800 Subject: [PATCH] Update terraform completion Add completion for terraform worskpace. The terraform env command is deprecated. The terraform workspace command should be used instead. "terraform env" will be removed in a future Terraform version. --- share/completions/terraform.fish | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/completions/terraform.fish b/share/completions/terraform.fish index b5d71931c..9d7c185da 100644 --- a/share/completions/terraform.fish +++ b/share/completions/terraform.fish @@ -45,6 +45,13 @@ complete -f -c terraform -n '__fish_seen_subcommand_from env' -a select -d 'Sele complete -f -c terraform -n '__fish_seen_subcommand_from env' -a new -d 'Create a new environment' complete -f -c terraform -n '__fish_seen_subcommand_from env' -a delete -d 'Delete an existing environment' +### workspace +complete -f -c terraform -n __fish_use_subcommand -a workspace -d 'Workspace management' +complete -f -c terraform -n '__fish_seen_subcommand_from workspace' -a list -d 'List workspaces' +complete -f -c terraform -n '__fish_seen_subcommand_from workspace' -a select -d 'Select an workspace' +complete -f -c terraform -n '__fish_seen_subcommand_from workspace' -a new -d 'Create a new workspace' +complete -f -c terraform -n '__fish_seen_subcommand_from workspace' -a delete -d 'Delete an existing workspace' + ### fmt complete -f -c terraform -n __fish_use_subcommand -a fmt -d 'Rewrite config files to canonical format' complete -f -c terraform -n '__fish_seen_subcommand_from fmt' -o list -d 'List files whose formatting differs'