-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Core] Knack adoption #12604
[Core] Knack adoption #12604
Conversation
add to S167 |
@@ -162,7 +166,8 @@ def show_help(self, cli_name, nouns, parser, is_group): | |||
AzCliHelp.update_examples(help_file) | |||
self._print_detailed_help(cli_name, help_file) | |||
|
|||
print(SURVEY_PROMPT) | |||
from colorama import Fore, Style |
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.
from colorama import Fore, Style [](start = 8, length = 32)
suggest to add some description in PR about colorama changes, I cannot understand the difference between colorama.init(autoreset=True) and use from colorama import Fore, Style
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.
This is really a long store about terminal coloring. You may check the colorama doc https://pypi.org/project/colorama/ for its usage. colorama.init(autoreset=True)
logic has been moved to Knack.
This line is redundant. Let's remove it.
SURVEY_PROMPT = Fore.YELLOW + Style.BRIGHT + 'Please let us know how we are doing: ' + Fore.BLUE \ | ||
+ 'https://aka.ms/clihats' + Style.RESET_ALL | ||
SURVEY_PROMPT = 'Please let us know how we are doing: https://aka.ms/clihats' | ||
SURVEY_PROMPT_COLOR = Fore.YELLOW + Style.BRIGHT + 'Please let us know how we are doing: ' + Fore.BLUE \ |
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.
you can add some snapshot in PR description for this kind of ux change
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.
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.
Could resolve conflict and errors first? |
This is because Knack is not released and the dependency is missing. Could you please take a look at microsoft/knack#181? |
# Conflicts: # src/azure-cli-core/azure/cli/core/extension/operations.py
History Notes:
[Core] PREVIEW: Allow disabling color by setting
AZURE_CORE_NO_COLOR
environment variable toTrue
or[core] no_color=True
config (#12601)[Core] PREVIEW: Add
--only-show-errors
global argument to mute all warning, info and debug output. It can also be enabled by settingAZURE_CORE_ONLY_SHOW_ERRORS
environment variable toTrue
or[core] only_show_errors=True
config (#12544)[Core] PREVIEW: Add experimental tag to command groups, commands and arguments (#12543)
{Core} Move yaml output to Knack (#12603)
This PR applies changes of microsoft/knack#181.