Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update to match core changes
  • Loading branch information
mirdaki-ms committed Mar 6, 2020
commit 88801d4065885f763b33087fe7ad1176b015179f
2 changes: 1 addition & 1 deletion src/ai-examples/azext_ai_examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def inject_functions_into_core():
# Replace the default examples from help calls
from azure.cli.core._help import AzCliHelp
from azext_ai_examples.custom import new_examples
AzCliHelp.check_for_new_examples = new_examples
AzCliHelp.update_examples = new_examples


class AiExamplesCommandsLoader(AzCommandsLoader):
Expand Down
4 changes: 2 additions & 2 deletions src/ai-examples/azext_ai_examples/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def check_connection_aladdin():
print('Connection failed')


def new_examples(command):
return replace_examples(command)
def new_examples(help_file):
help_file.examples = replace_examples(help_file.command)


# Replace built in examples with Aladdin ones
Expand Down