Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/azure-cli-core/azure/cli/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def __init__(self, **kwargs):

self.progress_controller = None

_configure_knack()

def refresh_request_id(self):
"""Assign a new random GUID as x-ms-client-request-id

Expand Down Expand Up @@ -851,3 +853,13 @@ def get_default_cli():
logging_cls=AzCliLogging,
output_cls=AzOutputProducer,
help_cls=AzCliHelp)


def _configure_knack():
"""Override consts defined in knack to make them Azure CLI-specific."""
from knack.util import status_tag_messages
ref_message = "Reference and support levels: https://aka.ms/CLI_refstatus"
# Override the preview message
status_tag_messages['preview'] = "{} is in preview and under development. " + ref_message
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
status_tag_messages['preview'] = "{} is in preview and under development. " + ref_message
status_tag_messages['preview'] = "{} is in preview. " + ref_message

I noticed that in knack there's no 'under development' for preview message.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not necessary for Azure CLI and Knack to have the same message. The message I used in this PR has been approved by PMs and UX team.

# Override the experimental message
status_tag_messages['experimental'] = "{} is experimental and under development. " + ref_message