You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(confirm): require explicit --yes in non-interactive environments
Replace --skip with --yes across all write commands. ui.Confirm now
returns an error when stdin is not a TTY instead of auto-approving,
forcing callers to pass --yes in CI/scripts. Confirmation is always
shown regardless of output format.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
cmd.AddCommand(deleteSubcommand(newRM, "certificates", "Delete root user Signin Certificates", "Delete existing root user Signing Certificates for specific AWS Organization member accounts."))
29
29
cmd.AddCommand(DeleteS3BucketPolicy(newRM))
30
30
cmd.AddCommand(DeleteSQSQueuePolicy(newRM))
31
-
cmd.PersistentFlags().BoolVar(&skipFlag, "skip", false, "Skip the confirmation prompt")
31
+
cmd.PersistentFlags().BoolVar(&skipFlag, "yes", false, "Skip the confirmation prompt")
32
32
returncmd
33
33
}
34
34
@@ -72,7 +72,7 @@ func runDelete(newRM func(context.Context) (rootmanager.RootManager, error), w i
cmd.PersistentFlags().StringSliceVarP(&accountsFlags, "accounts", "a", []string{}, "List of tarjet AWS account IDs (comma-separated). Use \"all\" to select all accounts.")
93
-
cmd.Flags().BoolVar(&skip, "skip", false, "Skip the confirmation prompt")
92
+
cmd.Flags().BoolVar(&skipFlag, "yes", false, "Skip the confirmation prompt")
0 commit comments