Skip to content

Commit

Permalink
Show up text AZD_CONFIG_DIR for azd config --help (#2726)
Browse files Browse the repository at this point in the history
* Show up text AZD_CONFIG_DIR for azd config --help
  • Loading branch information
v-jiaodi committed Sep 18, 2023
1 parent ee43cd0 commit 1fa3226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/azd/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ func getCmdConfigHelpDescription(*cobra.Command) string {
formatHelpNote(fmt.Sprintf("The default configuration path is: %s.",
output.WithLinkFormat("%HOME/.azd"),
)),
formatHelpNote(fmt.Sprintf("The configuration directory can be overridden by specifying a path" +
" in the AZD_CONFIG_DIR environment variable.",
)),
})
}

Expand Down
1 change: 1 addition & 0 deletions cli/azd/cmd/testdata/TestUsage-azd-config.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Manage the Azure Developer CLI user configuration, which includes your default A
Applications are initially configured when you run azd init.
The subscription and location you select will be stored at: %HOME/.azd/config.json.
The default configuration path is: %HOME/.azd.
The configuration directory can be overridden by specifying a path in the AZD_CONFIG_DIR environment variable.

Usage
azd config [command]
Expand Down

0 comments on commit 1fa3226

Please sign in to comment.