-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Core] AzCommandGroup refactor #17387
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
|
Core |
02b67ef to
e5eb2dc
Compare
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.
It's replaced by GenericUpdateCommandOperation
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.
It's replaced by WaitCommandOperation
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.
It's replaced by ShowCommandOperation
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.
Internal functions are replaced by CommandOperation
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
src/azure-cli-core/azure/cli/core/commands/command_operation.py
Outdated
Show resolved
Hide resolved
src/azure-cli-core/azure/cli/core/commands/command_operation.py
Outdated
Show resolved
Hide resolved
src/azure-cli-core/azure/cli/core/commands/command_operation.py
Outdated
Show resolved
Hide resolved
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.
the same concern as above
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.
Same reason as above
src/azure-cli-core/azure/cli/core/commands/command_operation.py
Outdated
Show resolved
Hide resolved
src/azure-cli-core/azure/cli/core/commands/command_operation.py
Outdated
Show resolved
Hide resolved
src/azure-cli-core/azure/cli/core/commands/command_operation.py
Outdated
Show resolved
Hide resolved
faab3a1 to
5866b8e
Compare
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Juliehzl
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.
LGTM
|
This is a rather big PR, please add description to illustrate
|
Description
Context for the change
AzCommandGroup are using
_cli_command,_cli_show_command,_cli_wait_commandand_cli_generic_update_commandfunction to register a command into command table. The logic of above functions are not clear, and they are not compatible with Configurational CLI.What is changed
_cli_generic_update_commandby classGenericUpdateCommandOperation_cli_wait_commandby classWaitCommandOperation_cli_show_commandby classShowCommandOperation_cli_commandbyadd_cli_commandand its internal functions move to classCommandOperationgeneric_update_command,_wait_command,_show_commandand_commandmethods ofAzCommandGroupHow to test
This change should be 100% compatible with existing code. So it should pass all of the existing tests.
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.
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.
I adhere to the Error Handling Guidelines.