-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
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.
This looks really good! 👍 Just out of curiosity, is it also possible to just add a single CLI command without the group or do you have to add a group?
docs/14_extending-kedro.md
Outdated
print(context.pipeline.to_json()) | ||
|
||
... | ||
cli.add_command(jupyter_group) |
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.
What is the jupyter_group
here? Is that obvious to others? I'm not seeing that mentioned elsewhere --- can you remove it to avoid confusion?
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.
Since users need to add some code to the existing file I tried to show (with ...
) that some existing code is omitted and cli.add_command(jupyter_group)
is a part of that code after which users need to add their code.
docs/14_extending-kedro.md
Outdated
``` | ||
|
||
After the modification, running `kedro` in your terminal will show the new command. | ||
After the modification, running `kedro -h` in your terminal will show the new `custom` group. |
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.
Do they need to restart their terminal?
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.
No
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.
Nice! Just a few suggestions to make things clear for the reader.
Co-authored-by: Jo Stichbury <[email protected]>
Co-authored-by: Jo Stichbury <[email protected]>
It is possible but I'd not encourage users to do so. If a user will add e.g. 10 new top-level commands (it is a highly fictional case) it will be a mess. A custom group will help to hide this mess and the user will not be confused with what is Kedro and custom commands. |
Co-authored-by: Jo Stichbury <[email protected]>
Co-authored-by: Jo Stichbury <[email protected]>
https://jira.quantumblack.com/browse/KED-1680