-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Survey] Add switch to turn off survey link #13041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://aka.ms/CLIUXstudy seems to be a survey, instead of a feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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: ' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lowercase a?
arrownj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.