Summary
Add --non-interactive as a global flag alias for the existing --no-prompt flag.
Motivation
The --non-interactive flag name is the de facto standard across CLI tooling (dotnet CLI, npm, pip, yarn, Homebrew, etc.). Developers and LLM agents trying azd for the first time will reach for --non-interactive and get an error. Adding it as an alias costs nothing and reduces friction.
The existing --no-prompt name should remain for backward compatibility.
Implementation Notes
- Add
--non-interactive as an alias in CreateGlobalFlagSet() in cmd/auto_install.go
- Both flags should set the same
GlobalCommandOptions.NoPrompt field
- Update help text to mention both flag names
- Update snapshot tests (
TestFigSpec, TestUsage)
Summary
Add
--non-interactiveas a global flag alias for the existing--no-promptflag.Motivation
The
--non-interactiveflag name is the de facto standard across CLI tooling (dotnet CLI, npm, pip, yarn, Homebrew, etc.). Developers and LLM agents trying azd for the first time will reach for--non-interactiveand get an error. Adding it as an alias costs nothing and reduces friction.The existing
--no-promptname should remain for backward compatibility.Implementation Notes
--non-interactiveas an alias inCreateGlobalFlagSet()incmd/auto_install.goGlobalCommandOptions.NoPromptfieldTestFigSpec,TestUsage)