Skip to content

[ai-examples] Switch to a new hook - #1345

Merged
Jiashuo Li (jiasli) merged 4 commits into
Azure:masterfrom
mirdaki:newHookAiExamples
Mar 19, 2020
Merged

Jiashuo Li (jiasli) merged 4 commits into
Azure:masterfrom
mirdaki:newHookAiExamples

Conversation

@mirdaki

Copy link
Copy Markdown
Contributor

This change coincides with this CLI PR to switch the help example hook. Now it directly modifies the help file examples, as opposed to just the method that printed them. This allows examples for commands that don't have any default examples (such as az aks list) and groups.

Note: As this update requires a new version of the CLI to function properly, I need to bump the minor compatible version once that new release is done. I will update the index.json at that point as well.


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

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?

@azuresdkci

Copy link
Copy Markdown

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/mirdaki/azure-cli-extensions.git@newHookAiExamples#subdirectory=src/$EXT&egg=$EXT"

@yonzhan

Copy link
Copy Markdown
Collaborator

add to S166.

@mirdaki

Copy link
Copy Markdown
Contributor Author

Yong Zhang (@yonzhan) and Jiashuo Li (@jiasli), I've updated the code with the new minimum version. Would you mind reviewing it?

@jiasli

Copy link
Copy Markdown
Contributor

If replacing is the desired behavior, rather than attaching, the PR looks good to me. Merging.

@jiasli

Copy link
Copy Markdown
Contributor

A small off-topic note: you may use the PR link directly https://github.com/Azure/azure-cli/pull/12431 instead of creating your own hyper link with [this CLI PR](https://github.com/Azure/azure-cli/pull/12431).

The link will be automatically converted to Azure/azure-cli#12431. This will be clearer. 😉

@jiasli
Jiashuo Li (jiasli) merged commit f47fcee into Azure:master Mar 19, 2020
@mirdaki

Copy link
Copy Markdown
Contributor Author

Oh good to know! I'll start doing that from now on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants