[Survey] Add switch to turn off survey link#13041
Conversation
| show_link = self.cli_ctx.config.getboolean('output', 'show_survey_link', True) | ||
| if show_link: | ||
| print(SURVEY_PROMPT_COLOR if self.cli_ctx.enable_color else SURVEY_PROMPT) | ||
| if not nouns: |
There was a problem hiding this comment.
Only add ux link for az --help without a specific command.
| 'https://aka.ms/clihats' + Style.RESET_ALL | ||
| UX_SURVEY_PROMPT = 'Mobile developer using Azure CLI? Come try our newest feature: https://aka.ms/CLIUXstudy' | ||
| UX_SURVEY_PROMPT_COLOR = Fore.YELLOW + Style.BRIGHT + 'Mobile developer using Azure CLI? Come try our newest feature: '\ | ||
| + Fore.BLUE + 'https://aka.ms/CLIUXstudy' + Style.RESET_ALL |
There was a problem hiding this comment.
https://aka.ms/CLIUXstudy seems to be a survey, instead of a feature.
| SURVEY_PROMPT_COLOR = Fore.YELLOW + Style.BRIGHT + 'Please let us know how we are doing: ' + Fore.BLUE + \ | ||
| 'https://aka.ms/clihats' + Style.RESET_ALL | ||
| UX_SURVEY_PROMPT = 'Mobile developer using Azure CLI? Come try our newest feature: https://aka.ms/CLIUXstudy' | ||
| UX_SURVEY_PROMPT_COLOR = Fore.YELLOW + Style.BRIGHT + 'Mobile developer using Azure CLI? Come try our newest feature: '\ |
There was a problem hiding this comment.
| UX_SURVEY_PROMPT_COLOR = Fore.YELLOW + Style.BRIGHT + 'Mobile developer using Azure CLI? Come try our newest feature: '\ | |
| UX_SURVEY_PROMPT_COLOR = Fore.YELLOW + Style.BRIGHT + 'Mobile developer using Azure CLI? Come and try our newest feature: '\ |
|
@fengzhou-msft let's confirm the message string with PM |
Message updated via PM's suggestion. |
| 'https://aka.ms/clihats' + Style.RESET_ALL | ||
| UX_SURVEY_PROMPT = 'And let us know if you\'re interested in trying out our newest features: https://aka.ms/CLIUXstudy' | ||
| UX_SURVEY_PROMPT_COLOR = Fore.YELLOW + Style.BRIGHT + \ | ||
| 'And let us know if you\'re interested in trying out our newest features: ' \ |
arrownj
left a comment
There was a problem hiding this comment.
just curious about that the only way to set this setting is to update config file manually ?
For changing config file, you can only manually edit it. But you can also set an environment variable as described in the PR description. |
Description
AZURE_OUTPUT_SHOW_SURVEY_LINK=noor add the following in~/.azure/config:The environment variable has higher priority.
az --versionandaz --help(but not inaz some-command --help).The output looks like this in
az --version:Testing Guide
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.