Skip to content
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

{UpdateExtCommandTree} Support aaz commands #4968

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

kairu-ms
Copy link
Contributor


Support to load aaz commands.

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

@@ -44,8 +44,7 @@ def update_cmd_tree(ext_name):
az_cli.invocation = invoker

sys.path.append(ext_dir)
extension_command_table, _ = _load_extension_command_loader(invoker.commands_loader,
"", ext_mod)
extension_command_table, _ = _load_extension_command_loader(invoker.commands_loader, None, ext_mod)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"" empty string will cause cut when loading command table for aaz commands. Replace it by None for fully load.

Copy link
Member

Choose a reason for hiding this comment

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

Could you give some more info? I can't really understand the context. 😅

@yonzhan
Copy link
Collaborator

yonzhan commented Jun 10, 2022

UpdateExtCommandTree

@kairu-ms kairu-ms merged commit 2cb1408 into Azure:main Jun 10, 2022
kairu-ms added a commit that referenced this pull request Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants