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
4 changes: 4 additions & 0 deletions src/azure-cli-core/azure/cli/core/commands/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@

EVENT_INVOKER_PRE_CMD_TBL_TRUNCATE = 'CommandInvoker.OnPreCommandTableTruncate'
EVENT_INVOKER_ON_TAB_COMPLETION = 'CommandInvoker.OnTabCompletion'

# special events used for Interactive and Alias extension communication
EVENT_INTERACTIVE_PRE_COMPLETER_TEXT_PARSING = 'Interactive.PreCompleterTextParsing'
EVENT_INTERACTIVE_POST_SUB_TREE_CREATE = 'Interactive.PostSubTreeCreate'
Copy link
Member

Choose a reason for hiding this comment

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

Where would these be called in the core, and why are they needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They will be called from the interactive/alias extensions. The scenario is extensions needing to communicate with one another through the CLI core.
This should only be reserved for extensions that are tightly integrated into the CLI.