Documentation
¶
Index ¶
Constants ¶
View Source
const InstallURL = "https://learn.microsoft.com/en-us/cli/azure/"
Variables ¶
View Source
var ErrNotInstalled = fmt.Errorf("az CLI not found in PATH — install it from %s", InstallURL)
ErrNotInstalled is returned when the `az` binary cannot be found on PATH.
Functions ¶
func CheckInstalled ¶
func CheckInstalled() error
CheckInstalled returns ErrNotInstalled if the `az` binary is not on PATH. Callers should use this before performing setup work to avoid leaving partial state.
func Exec ¶
func Exec(ctx context.Context, extraEnv []string, stdin io.Reader, stdout, stderr io.Writer, args ...string) error
Exec runs `az <args...>`. extraEnv is appended to the inherited process environment (later entries win), letting callers inject AZURE_CONFIG_DIR, proxy, and CA settings without mutating the user's global Azure CLI configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.