diff --git a/README.md b/README.md index 9283493..ac24a75 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,6 @@ Usage: Flags: -a, --attribute string required - Workspace attribute to update, use Terraform Cloud API workspace attribute names - -d, --dry-run-mode dry run mode only. (e.g. "-d") -h, --help help for update -v, --value string required - Value -w, --workspace string required - Partial workspace name to search across all workspaces diff --git a/cmd/variablesUpdate.go b/cmd/variablesUpdate.go index 78ac511..4aead20 100644 --- a/cmd/variablesUpdate.go +++ b/cmd/variablesUpdate.go @@ -78,16 +78,6 @@ func init() { false, `optional (e.g. "-v=true") whether to do the search based on the value of the variables. (Must be false if add-key-if-not-found is true`, ) - updateCmd.Flags().BoolVarP( - &readOnlyMode, - "dry-run-mode", - "d", - false, - `optional (e.g. "-d=true") dry run mode only.`, - ) - if err := updateCmd.Flags().MarkDeprecated("dry-run-mode", "use -r for read-only-mode"); err != nil { - errLog.Fatalln(err) - } updateCmd.Flags().BoolVarP( &sensitiveVariable, "sensitive-variable", diff --git a/cmd/workspacesUpdate.go b/cmd/workspacesUpdate.go index 838c9b3..5565fa6 100644 --- a/cmd/workspacesUpdate.go +++ b/cmd/workspacesUpdate.go @@ -56,12 +56,7 @@ func init() { requiredPrefix+"Value") workspaceUpdateCmd.Flags().StringVarP(&workspaceFilter, flagWorkspaceFilter, "w", "", requiredPrefix+"Partial workspace name to search across all workspaces") - workspaceUpdateCmd.Flags().BoolVarP(&readOnlyMode, "dry-run-mode", "d", false, - `dry run mode only. (e.g. "-d")`, - ) - if err := updateCmd.Flags().MarkDeprecated("dry-run-mode", "use -r for read-only-mode"); err != nil { - errLog.Fatalln(err) - } + requiredFlags := []string{flagAttribute, flagValue, flagWorkspaceFilter} for _, flag := range requiredFlags { if err := workspaceUpdateCmd.MarkFlagRequired(flag); err != nil {