diff --git a/cli/azd/cmd/auto_install.go b/cli/azd/cmd/auto_install.go index 3374834439d..2f6fca9b948 100644 --- a/cli/azd/cmd/auto_install.go +++ b/cli/azd/cmd/auto_install.go @@ -16,6 +16,7 @@ import ( "github.com/azure/azure-dev/cli/azd/internal" "github.com/azure/azure-dev/cli/azd/internal/runcontext/agentdetect" "github.com/azure/azure-dev/cli/azd/internal/tracing/resource" + "github.com/azure/azure-dev/cli/azd/pkg/environment" "github.com/azure/azure-dev/cli/azd/pkg/extensions" "github.com/azure/azure-dev/cli/azd/pkg/input" "github.com/azure/azure-dev/cli/azd/pkg/ioc" @@ -616,6 +617,7 @@ func CreateGlobalFlagSet() *pflag.FlagSet { "no-prompt", false, "Accepts the default value instead of prompting, or it fails if there is no default.") + globalFlags.StringP("environment", "e", "", "The name of the environment to use.") // The telemetry system is responsible for reading these flags value and using it to configure the telemetry // system, but we still need to add it to our flag set so that when we parse the command line with Cobra we @@ -669,6 +671,17 @@ func ParseGlobalFlags(args []string, opts *internal.GlobalCommandOptions) error opts.NoPrompt = boolVal } + // Parse -e/--environment with strict validation. + // Invalid environment names are rejected with an error so users get clear feedback on typos. + // Extensions have been migrated off -e (see reserved flags registry), so any -e value + // should be a valid environment name. + if strVal, err := globalFlagSet.GetString("environment"); err == nil && strVal != "" { + if !environment.IsValidEnvironmentName(strVal) { + return environment.InvalidEnvironmentNameError(strVal) + } + opts.EnvironmentName = strVal + } + // Agent Detection: If --no-prompt was not explicitly set and we detect an AI coding agent // as the caller, automatically enable no-prompt mode for non-interactive execution. noPromptFlag := globalFlagSet.Lookup("no-prompt") diff --git a/cli/azd/cmd/auto_install_test.go b/cli/azd/cmd/auto_install_test.go index e3295de9e84..6358551d96a 100644 --- a/cli/azd/cmd/auto_install_test.go +++ b/cli/azd/cmd/auto_install_test.go @@ -421,3 +421,102 @@ func TestParseGlobalFlags_AgentDetection(t *testing.T) { }) } } + +func TestParseGlobalFlags_EnvironmentName(t *testing.T) { + tests := []struct { + name string + args []string + expectedEnvName string + }{ + { + name: "valid env name with -e", + args: []string{"-e", "dev", "up"}, + expectedEnvName: "dev", + }, + { + name: "valid env name with --environment", + args: []string{"--environment", "production", "deploy"}, + expectedEnvName: "production", + }, + { + name: "valid env name with equals syntax", + args: []string{"--environment=staging", "deploy"}, + expectedEnvName: "staging", + }, + { + name: "env name with dots and hyphens", + args: []string{"-e", "my-env.v2", "up"}, + expectedEnvName: "my-env.v2", + }, + { + name: "empty value", + args: []string{"up"}, + expectedEnvName: "", + }, + { + name: "env name alongside other global flags", + args: []string{"--debug", "-e", "myenv", "--no-prompt", "deploy"}, + expectedEnvName: "myenv", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + // Clear agent detection to avoid NoPrompt side effects + clearAgentEnvVarsForTest(t) + agentdetect.ResetDetection() + + opts := &internal.GlobalCommandOptions{} + err := ParseGlobalFlags(tt.args, opts) + require.NoError(t, err) + + assert.Equal(t, tt.expectedEnvName, opts.EnvironmentName, + "EnvironmentName should be %q for test case: %s", tt.expectedEnvName, tt.name) + + agentdetect.ResetDetection() + }) + } +} + +func TestParseGlobalFlags_InvalidEnvironmentName(t *testing.T) { + tests := []struct { + name string + args []string + }{ + { + name: "URL value", + args: []string{"-e", "https://foo.services.ai.azure.com/api/projects/bar", "model", "custom", "create"}, + }, + { + name: "value with colons", + args: []string{"-e", "host:port", "model", "custom", "create"}, + }, + { + name: "value with slashes", + args: []string{"-e", "path/to/thing", "model", "custom", "create"}, + }, + { + name: "value with spaces", + args: []string{"-e", "env name with spaces"}, + }, + { + name: "special characters", + args: []string{"-e", "env@#$%"}, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + clearAgentEnvVarsForTest(t) + agentdetect.ResetDetection() + + opts := &internal.GlobalCommandOptions{} + err := ParseGlobalFlags(tt.args, opts) + require.Error(t, err) + assert.Contains(t, err.Error(), "is invalid") + assert.Empty(t, opts.EnvironmentName) + + agentdetect.ResetDetection() + }) + } +} diff --git a/cli/azd/cmd/container.go b/cli/azd/cmd/container.go index 95cd937c48e..0f1f5d467a3 100644 --- a/cli/azd/cmd/container.go +++ b/cli/azd/cmd/container.go @@ -189,8 +189,12 @@ func registerCommonDependencies(container *ioc.NestedContainer) { return writer }) - container.MustRegisterScoped(func(ctx context.Context, cmd *cobra.Command) internal.EnvFlag { - // The env flag `-e, --environment` is available on most azd commands but not all + container.MustRegisterScoped(func( + ctx context.Context, + cmd *cobra.Command, + globalOptions *internal.GlobalCommandOptions, + ) internal.EnvFlag { + // The env flag `-e, --environment` is available on most azd commands but not all. // This is typically used to override the default environment and is used for bootstrapping other components // such as the azd environment. // If the flag is not available, don't panic, just return an empty string which will then allow for our default @@ -201,6 +205,13 @@ func registerCommonDependencies(container *ioc.NestedContainer) { envValue = "" } + // For extension commands (DisableFlagParsing=true), cobra never parses -e so + // cmd.Flags().GetString always returns "". Fall back to the value that was + // pre-parsed in ParseGlobalFlags before the command tree was built. + if envValue == "" && globalOptions.EnvironmentName != "" { + envValue = globalOptions.EnvironmentName + } + if envValue == "" { // If no explicit environment flag was set, but one was provided // in the context, use that instead. @@ -981,6 +992,11 @@ func (w *workflowCmdAdapter) ExecuteContext(ctx context.Context, args []string) // extractGlobalArgs extracts global flag arguments from the process command line. // It parses os.Args against the global flag set and returns only the flags that were // explicitly set by the user, formatted as command-line arguments. +// +// The "environment" flag is intentionally excluded: workflow steps may define their own +// -e/--environment (e.g. `azd: env set KEY VALUE -e env1`), and appending the parent's +// --environment would override the step-level value. Environment propagation to workflow +// steps is handled by the globalOptions DI fallback in the EnvFlag resolver instead. func extractGlobalArgs() []string { globalFlagSet := CreateGlobalFlagSet() globalFlagSet.SetOutput(io.Discard) @@ -989,7 +1005,7 @@ func extractGlobalArgs() []string { var result []string globalFlagSet.VisitAll(func(f *pflag.Flag) { - if f.Changed { + if f.Changed && f.Name != internal.EnvironmentNameFlagName { // Use --flag=value syntax to avoid ambiguity. The two-arg form (--flag value) // doesn't work for boolean flags, where the value is treated as a positional arg. result = append(result, fmt.Sprintf("--%s=%s", f.Name, f.Value.String())) diff --git a/cli/azd/cmd/extensions.go b/cli/azd/cmd/extensions.go index 32a241342f8..6df6719515b 100644 --- a/cli/azd/cmd/extensions.go +++ b/cli/azd/cmd/extensions.go @@ -244,22 +244,22 @@ func (a *extensionAction) Run(ctx context.Context) (*actions.ActionResult, error allEnv = append(allEnv, traceEnv...) } - // Read global flags for propagation via InvokeOptions - debugEnabled, _ := a.cmd.Flags().GetBool("debug") - cwd, _ := a.cmd.Flags().GetString("cwd") - envName, _ := a.cmd.Flags().GetString("environment") - + // Use globalOptions for flag propagation instead of cmd.Flags(). + // Extension commands use DisableFlagParsing=true, so cobra never parses + // global flags like --debug, --cwd, or -e. The globalOptions were populated + // by ParseGlobalFlags() before command tree construction and are the only + // reliable source for these values. options := &extensions.InvokeOptions{ Args: a.args, Env: allEnv, // cmd extensions are always interactive (connected to terminal) Interactive: true, - Debug: debugEnabled, + Debug: a.globalOptions.EnableDebugLogging, // Use globalOptions.NoPrompt which includes agent detection, // not just the --no-prompt CLI flag NoPrompt: a.globalOptions.NoPrompt, - Cwd: cwd, - Environment: envName, + Cwd: a.globalOptions.Cwd, + Environment: a.globalOptions.EnvironmentName, } _, invokeErr := a.extensionRunner.Invoke(ctx, extension, options) diff --git a/cli/azd/cmd/testdata/TestFigSpec.ts b/cli/azd/cmd/testdata/TestFigSpec.ts index 1070af51d1b..e0429e4c00a 100644 --- a/cli/azd/cmd/testdata/TestFigSpec.ts +++ b/cli/azd/cmd/testdata/TestFigSpec.ts @@ -226,15 +226,6 @@ const completionSpec: Fig.Spec = { name: ['init'], description: 'Initialize a new AI agent project. (Preview)', options: [ - { - name: ['--environment', '-e'], - description: 'The name of the azd environment to use.', - args: [ - { - name: 'environment', - }, - ], - }, { name: ['--host'], description: 'For container based agents, can override the default host to target a container app instead. Accepted values: \'containerapp\'', @@ -435,15 +426,6 @@ const completionSpec: Fig.Spec = { name: ['init'], description: 'Initialize a new AI Fine-tuning project. (Preview)', options: [ - { - name: ['--environment', '-n'], - description: 'The name of the azd environment to use.', - args: [ - { - name: 'environment', - }, - ], - }, { name: ['--from-job', '-j'], description: 'Clone configuration from an existing job ID', @@ -1158,15 +1140,6 @@ const completionSpec: Fig.Spec = { name: ['init'], description: 'Initialize a new AI models project. (Preview)', options: [ - { - name: ['--environment', '-n'], - description: 'The name of the azd environment to use', - args: [ - { - name: 'environment', - }, - ], - }, { name: ['--project-endpoint', '-e'], description: 'Azure AI Foundry project endpoint URL (e.g., https://account.services.ai.azure.com/api/projects/project-name)', @@ -3698,6 +3671,16 @@ const completionSpec: Fig.Spec = { description: 'Enables debugging and diagnostics logging.', isPersistent: true, }, + { + name: ['--environment', '-e'], + description: 'The name of the environment to use.', + isPersistent: true, + args: [ + { + name: 'environment', + }, + ], + }, { name: ['--no-prompt'], description: 'Accepts the default value instead of prompting, or it fails if there is no default.', diff --git a/cli/azd/cmd/testdata/TestUsage-azd-add.snap b/cli/azd/cmd/testdata/TestUsage-azd-add.snap index eb2c8c9886c..11209d07544 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-add.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-add.snap @@ -5,11 +5,12 @@ Usage azd add [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd add in your web browser. - -h, --help : Gets help for add. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd add in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for add. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-ai-agent.snap b/cli/azd/cmd/testdata/TestUsage-azd-ai-agent.snap index a4076574cbe..e62da61e30b 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-ai-agent.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-ai-agent.snap @@ -5,11 +5,12 @@ Usage azd ai agent [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd ai agent in your web browser. - -h, --help : Gets help for agent. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd ai agent in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for agent. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-ai-finetuning.snap b/cli/azd/cmd/testdata/TestUsage-azd-ai-finetuning.snap index 2c1263b0c6f..2d078b0f730 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-ai-finetuning.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-ai-finetuning.snap @@ -5,11 +5,12 @@ Usage azd ai finetuning [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd ai finetuning in your web browser. - -h, --help : Gets help for finetuning. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd ai finetuning in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for finetuning. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-ai-models.snap b/cli/azd/cmd/testdata/TestUsage-azd-ai-models.snap index e532e0093c1..d1327bec7f6 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-ai-models.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-ai-models.snap @@ -5,11 +5,12 @@ Usage azd ai models [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd ai models in your web browser. - -h, --help : Gets help for models. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd ai models in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for models. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-ai.snap b/cli/azd/cmd/testdata/TestUsage-azd-ai.snap index 1c4b239e3f2..b7cba1c07ba 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-ai.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-ai.snap @@ -10,11 +10,12 @@ Available Commands models : Extension for managing custom models in Azure AI Foundry. (Preview) Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd ai in your web browser. - -h, --help : Gets help for ai. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd ai in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for ai. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd ai [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-appservice.snap b/cli/azd/cmd/testdata/TestUsage-azd-appservice.snap index 98cf944304d..316fd405aac 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-appservice.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-appservice.snap @@ -5,11 +5,12 @@ Usage azd appservice [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd appservice in your web browser. - -h, --help : Gets help for appservice. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd appservice in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for appservice. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-auth-login.snap b/cli/azd/cmd/testdata/TestUsage-azd-auth-login.snap index b1483268d29..8cc44be7014 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-auth-login.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-auth-login.snap @@ -16,11 +16,12 @@ Flags --use-device-code : When true, log in by using a device code instead of a browser. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd auth login in your web browser. - -h, --help : Gets help for login. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd auth login in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for login. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-auth-logout.snap b/cli/azd/cmd/testdata/TestUsage-azd-auth-logout.snap index e9d42e1763d..d9087aac6cd 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-auth-logout.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-auth-logout.snap @@ -5,11 +5,12 @@ Usage azd auth logout [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd auth logout in your web browser. - -h, --help : Gets help for logout. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd auth logout in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for logout. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-auth-status.snap b/cli/azd/cmd/testdata/TestUsage-azd-auth-status.snap index 14dec11d09f..cc345fc049c 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-auth-status.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-auth-status.snap @@ -5,11 +5,12 @@ Usage azd auth status [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd auth status in your web browser. - -h, --help : Gets help for status. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd auth status in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for status. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-auth.snap b/cli/azd/cmd/testdata/TestUsage-azd-auth.snap index 718e200775f..9729ccd7ddb 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-auth.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-auth.snap @@ -10,11 +10,12 @@ Available Commands status : Show the current authentication status. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd auth in your web browser. - -h, --help : Gets help for auth. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd auth in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for auth. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd auth [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-coding-agent.snap b/cli/azd/cmd/testdata/TestUsage-azd-coding-agent.snap index 93eb1295c74..061ae82d4ce 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-coding-agent.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-coding-agent.snap @@ -5,11 +5,12 @@ Usage azd coding-agent [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd coding-agent in your web browser. - -h, --help : Gets help for coding-agent. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd coding-agent in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for coding-agent. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-completion-bash.snap b/cli/azd/cmd/testdata/TestUsage-azd-completion-bash.snap index 675831da085..cf52d0c75e0 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-completion-bash.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-completion-bash.snap @@ -8,11 +8,12 @@ Usage azd completion bash Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd completion bash in your web browser. - -h, --help : Gets help for bash. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd completion bash in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for bash. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Examples Install completions for all sessions (Linux) diff --git a/cli/azd/cmd/testdata/TestUsage-azd-completion-fig.snap b/cli/azd/cmd/testdata/TestUsage-azd-completion-fig.snap index fc17f0e82bf..ec79fe09e40 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-completion-fig.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-completion-fig.snap @@ -5,11 +5,12 @@ Usage azd completion fig Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd completion fig in your web browser. - -h, --help : Gets help for fig. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd completion fig in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for fig. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-completion-fish.snap b/cli/azd/cmd/testdata/TestUsage-azd-completion-fish.snap index fb116004adc..8b9098a5ad5 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-completion-fish.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-completion-fish.snap @@ -5,11 +5,12 @@ Usage azd completion fish Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd completion fish in your web browser. - -h, --help : Gets help for fish. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd completion fish in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for fish. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Examples Install completions for all sessions diff --git a/cli/azd/cmd/testdata/TestUsage-azd-completion-powershell.snap b/cli/azd/cmd/testdata/TestUsage-azd-completion-powershell.snap index c8711d8b19f..9fd63435228 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-completion-powershell.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-completion-powershell.snap @@ -5,11 +5,12 @@ Usage azd completion powershell Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd completion powershell in your web browser. - -h, --help : Gets help for powershell. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd completion powershell in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for powershell. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Examples Install completions for all sessions diff --git a/cli/azd/cmd/testdata/TestUsage-azd-completion-zsh.snap b/cli/azd/cmd/testdata/TestUsage-azd-completion-zsh.snap index 75a388e4336..1963126b802 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-completion-zsh.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-completion-zsh.snap @@ -9,11 +9,12 @@ Usage azd completion zsh Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd completion zsh in your web browser. - -h, --help : Gets help for zsh. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd completion zsh in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for zsh. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Examples Install completions for all sessions diff --git a/cli/azd/cmd/testdata/TestUsage-azd-completion.snap b/cli/azd/cmd/testdata/TestUsage-azd-completion.snap index b4d297240d5..36db73ecdee 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-completion.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-completion.snap @@ -12,11 +12,12 @@ Available Commands zsh : Generate zsh completion script. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd completion in your web browser. - -h, --help : Gets help for completion. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd completion in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for completion. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd completion [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-concurx.snap b/cli/azd/cmd/testdata/TestUsage-azd-concurx.snap index 7c67c02090b..8e8936fc252 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-concurx.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-concurx.snap @@ -5,11 +5,12 @@ Usage azd concurx [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd concurx in your web browser. - -h, --help : Gets help for concurx. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd concurx in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for concurx. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-config-get.snap b/cli/azd/cmd/testdata/TestUsage-azd-config-get.snap index 4b448e83cd5..33fdd98a47c 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-config-get.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-config-get.snap @@ -5,11 +5,12 @@ Usage azd config get [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd config get in your web browser. - -h, --help : Gets help for get. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd config get in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for get. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-config-list-alpha.snap b/cli/azd/cmd/testdata/TestUsage-azd-config-list-alpha.snap index 8aa1c17ba52..0094122eaf0 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-config-list-alpha.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-config-list-alpha.snap @@ -5,11 +5,12 @@ Usage azd config list-alpha [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd config list-alpha in your web browser. - -h, --help : Gets help for list-alpha. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd config list-alpha in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for list-alpha. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Examples Displays a list of all available features in the alpha stage diff --git a/cli/azd/cmd/testdata/TestUsage-azd-config-options.snap b/cli/azd/cmd/testdata/TestUsage-azd-config-options.snap index 6f21c33d949..8fa858952df 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-config-options.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-config-options.snap @@ -5,11 +5,12 @@ Usage azd config options [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd config options in your web browser. - -h, --help : Gets help for options. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd config options in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for options. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Examples List all available configuration settings diff --git a/cli/azd/cmd/testdata/TestUsage-azd-config-reset.snap b/cli/azd/cmd/testdata/TestUsage-azd-config-reset.snap index 722dfa56af7..83c41f51be0 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-config-reset.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-config-reset.snap @@ -8,11 +8,12 @@ Flags -f, --force : Force reset without confirmation. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd config reset in your web browser. - -h, --help : Gets help for reset. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd config reset in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for reset. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-config-set.snap b/cli/azd/cmd/testdata/TestUsage-azd-config-set.snap index 779d3efc993..1c0bf8acbb3 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-config-set.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-config-set.snap @@ -5,11 +5,12 @@ Usage azd config set [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd config set in your web browser. - -h, --help : Gets help for set. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd config set in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for set. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-config-show.snap b/cli/azd/cmd/testdata/TestUsage-azd-config-show.snap index b4970a7919f..518483f35ea 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-config-show.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-config-show.snap @@ -5,11 +5,12 @@ Usage azd config show [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd config show in your web browser. - -h, --help : Gets help for show. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd config show in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for show. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-config-unset.snap b/cli/azd/cmd/testdata/TestUsage-azd-config-unset.snap index 3eecd9cd7f2..14bc744972c 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-config-unset.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-config-unset.snap @@ -5,11 +5,12 @@ Usage azd config unset [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd config unset in your web browser. - -h, --help : Gets help for unset. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd config unset in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for unset. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-config.snap b/cli/azd/cmd/testdata/TestUsage-azd-config.snap index a8540bd7c0a..c6812a024f5 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-config.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-config.snap @@ -18,11 +18,12 @@ Available Commands unset : Unsets a configuration. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd config in your web browser. - -h, --help : Gets help for config. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd config in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for config. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd config [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-grant.snap b/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-grant.snap index 0044971f232..0d99f6023b7 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-grant.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-grant.snap @@ -14,11 +14,12 @@ Flags --tool string : Specific tool name (requires --server) Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd copilot consent grant in your web browser. - -h, --help : Gets help for grant. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd copilot consent grant in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for grant. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-list.snap b/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-list.snap index 8570763cb57..a42511a47d9 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-list.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-list.snap @@ -12,11 +12,12 @@ Flags --target string : Specific target to operate on (server/tool format) Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd copilot consent list in your web browser. - -h, --help : Gets help for list. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd copilot consent list in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for list. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-revoke.snap b/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-revoke.snap index 33e952c4385..2997175ea57 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-revoke.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent-revoke.snap @@ -12,11 +12,12 @@ Flags --target string : Specific target to operate on (server/tool format) Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd copilot consent revoke in your web browser. - -h, --help : Gets help for revoke. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd copilot consent revoke in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for revoke. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent.snap b/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent.snap index 363c9c78161..752b63165da 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-copilot-consent.snap @@ -10,11 +10,12 @@ Available Commands revoke : Revoke consent rules. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd copilot consent in your web browser. - -h, --help : Gets help for consent. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd copilot consent in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for consent. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd copilot consent [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-copilot.snap b/cli/azd/cmd/testdata/TestUsage-azd-copilot.snap index ed69deb7e2b..337ebacf80f 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-copilot.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-copilot.snap @@ -8,11 +8,12 @@ Available Commands consent : Manage tool consent. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd copilot in your web browser. - -h, --help : Gets help for copilot. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd copilot in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for copilot. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd copilot [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-demo.snap b/cli/azd/cmd/testdata/TestUsage-azd-demo.snap index a72c0f55643..e55fe63154a 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-demo.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-demo.snap @@ -5,11 +5,12 @@ Usage azd demo [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd demo in your web browser. - -h, --help : Gets help for demo. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd demo in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for demo. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-env-config.snap b/cli/azd/cmd/testdata/TestUsage-azd-env-config.snap index 4f54421f3ba..1d45f651488 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-env-config.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-env-config.snap @@ -14,11 +14,12 @@ Available Commands unset : Unsets a configuration value in the environment. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd env config in your web browser. - -h, --help : Gets help for config. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd env config in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for config. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd env config [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-env-list.snap b/cli/azd/cmd/testdata/TestUsage-azd-env-list.snap index 9159323e8a0..abadf8f0286 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-env-list.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-env-list.snap @@ -5,11 +5,12 @@ Usage azd env list [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd env list in your web browser. - -h, --help : Gets help for list. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd env list in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for list. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-env-new.snap b/cli/azd/cmd/testdata/TestUsage-azd-env-new.snap index 847ed048966..5ff6986685b 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-env-new.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-env-new.snap @@ -9,11 +9,12 @@ Flags --subscription string : ID of an Azure subscription to use for the new environment Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd env new in your web browser. - -h, --help : Gets help for new. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd env new in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for new. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-env-select.snap b/cli/azd/cmd/testdata/TestUsage-azd-env-select.snap index 9322a4fcbb6..65b2075488f 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-env-select.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-env-select.snap @@ -5,11 +5,12 @@ Usage azd env select [] [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd env select in your web browser. - -h, --help : Gets help for select. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd env select in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for select. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-env.snap b/cli/azd/cmd/testdata/TestUsage-azd-env.snap index 7b267e44c71..78060906ebe 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-env.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-env.snap @@ -22,11 +22,12 @@ Available Commands set-secret : Set a name as a reference to a Key Vault secret in the environment. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd env in your web browser. - -h, --help : Gets help for env. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd env in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for env. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd env [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-install.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-install.snap index 1bb04955d9a..5992ce8d59f 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-install.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-install.snap @@ -10,11 +10,12 @@ Flags -v, --version string : The version of the extension to install Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension install in your web browser. - -h, --help : Gets help for install. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension install in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for install. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-list.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-list.snap index a5d9b3ca8e0..6b036f31527 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-list.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-list.snap @@ -10,11 +10,12 @@ Flags --tags strings : Filter extensions by tags Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension list in your web browser. - -h, --help : Gets help for list. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension list in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for list. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-show.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-show.snap index 4c1b7b3f5be..5be9f3a34e6 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-show.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-show.snap @@ -8,11 +8,12 @@ Flags -s, --source string : The extension source to use. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension show in your web browser. - -h, --help : Gets help for show. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension show in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for show. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-source-add.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-source-add.snap index 9c64c109c8f..94783cf2ed0 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-source-add.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-source-add.snap @@ -10,11 +10,12 @@ Flags -t, --type string : The type of the extension source. Supported types are 'file' and 'url' Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension source add in your web browser. - -h, --help : Gets help for add. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension source add in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for add. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-source-list.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-source-list.snap index debc28d90d8..c7f3f5d83aa 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-source-list.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-source-list.snap @@ -5,11 +5,12 @@ Usage azd extension source list [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension source list in your web browser. - -h, --help : Gets help for list. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension source list in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for list. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-source-remove.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-source-remove.snap index 2496df6c488..8fc14987e22 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-source-remove.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-source-remove.snap @@ -5,11 +5,12 @@ Usage azd extension source remove [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension source remove in your web browser. - -h, --help : Gets help for remove. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension source remove in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for remove. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-source-validate.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-source-validate.snap index 5f71c440d23..e8aadf6bbd2 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-source-validate.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-source-validate.snap @@ -8,11 +8,12 @@ Flags --strict : Enable strict validation (require checksums) Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension source validate in your web browser. - -h, --help : Gets help for validate. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension source validate in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for validate. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-source.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-source.snap index 71f0d64973c..706d16fb3ea 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-source.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-source.snap @@ -11,11 +11,12 @@ Available Commands validate : Validate an extension source's registry.json file. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension source in your web browser. - -h, --help : Gets help for source. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension source in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for source. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd extension source [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-uninstall.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-uninstall.snap index 8bb88a19442..2f5362e7d64 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-uninstall.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-uninstall.snap @@ -8,11 +8,12 @@ Flags --all : Uninstall all installed extensions Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension uninstall in your web browser. - -h, --help : Gets help for uninstall. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension uninstall in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for uninstall. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension-upgrade.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension-upgrade.snap index 75af0e92c30..aa0c8a0bc75 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension-upgrade.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension-upgrade.snap @@ -10,11 +10,12 @@ Flags -v, --version string : The version of the extension to upgrade to Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension upgrade in your web browser. - -h, --help : Gets help for upgrade. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension upgrade in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for upgrade. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-extension.snap b/cli/azd/cmd/testdata/TestUsage-azd-extension.snap index d5f7fba28c9..e22ac3e811b 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-extension.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-extension.snap @@ -13,11 +13,12 @@ Available Commands upgrade : Upgrade specified extensions. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd extension in your web browser. - -h, --help : Gets help for extension. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd extension in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for extension. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd extension [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-hooks.snap b/cli/azd/cmd/testdata/TestUsage-azd-hooks.snap index 561f1d53d7f..bcca35d7cb7 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-hooks.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-hooks.snap @@ -8,11 +8,12 @@ Available Commands run : Runs the specified hook for the project and services Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd hooks in your web browser. - -h, --help : Gets help for hooks. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd hooks in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for hooks. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd hooks [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-infra.snap b/cli/azd/cmd/testdata/TestUsage-azd-infra.snap index e8c1ce951ac..baa85b98824 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-infra.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-infra.snap @@ -8,11 +8,12 @@ Available Commands generate : Write IaC for your project to disk, allowing you to manually manage it. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd infra in your web browser. - -h, --help : Gets help for infra. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd infra in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for infra. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd infra [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-mcp-start.snap b/cli/azd/cmd/testdata/TestUsage-azd-mcp-start.snap index f28c8d9a1fc..e939d3cd760 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-mcp-start.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-mcp-start.snap @@ -5,11 +5,12 @@ Usage azd mcp start [flags] Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd mcp start in your web browser. - -h, --help : Gets help for start. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd mcp start in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for start. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-mcp.snap b/cli/azd/cmd/testdata/TestUsage-azd-mcp.snap index 73ef7c1992e..f4ffa5d3f99 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-mcp.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-mcp.snap @@ -8,11 +8,12 @@ Available Commands start : Starts the MCP server. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd mcp in your web browser. - -h, --help : Gets help for mcp. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd mcp in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for mcp. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd mcp [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-pipeline.snap b/cli/azd/cmd/testdata/TestUsage-azd-pipeline.snap index c53e22d3311..d6a04b90891 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-pipeline.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-pipeline.snap @@ -12,11 +12,12 @@ Available Commands config : Configure your deployment pipeline to connect securely to Azure. (Beta) Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd pipeline in your web browser. - -h, --help : Gets help for pipeline. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd pipeline in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for pipeline. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Use azd pipeline [command] --help to view examples and more information about a specific command. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-template-list.snap b/cli/azd/cmd/testdata/TestUsage-azd-template-list.snap index c02d3e7ecc0..cce5d2055db 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-template-list.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-template-list.snap @@ -9,11 +9,12 @@ Flags -s, --source string : Filters templates by source. Global Flags - -C, --cwd string : Sets the current working directory. - --debug : Enables debugging and diagnostics logging. - --docs : Opens the documentation for azd template list in your web browser. - -h, --help : Gets help for list. - --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd template list in your web browser. + -e, --environment string : The name of the environment to use. + -h, --help : Gets help for list. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. diff --git a/cli/azd/cmd/testdata/TestUsage-azd-template-show.snap b/cli/azd/cmd/testdata/TestUsage-azd-template-show.snap index 328c50b52d0..e45f70a8d12 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd-template-show.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd-template-show.snap @@ -5,11 +5,12 @@ Usage azd template show