-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add shell_complete implementation for workflows and datas…
…ets (#2512) * add shell_complete implementation for workflows * add how-to guide for enabling renku cli auto-completion * add dataset autocomplete functionality * add sphinx-tabs for better documentation shell integration * remove click_completion
- Loading branch information
Showing
16 changed files
with
150 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ aimed at active users of Renku CLI and target specific use-cases or common issue | |
|
||
hpc | ||
provider | ||
shell-integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.. _shell-integration: | ||
|
||
Shell integration of Renku CLI | ||
============================== | ||
|
||
Renku CLI supports shell auto-completion for Renku commands and their arguments like datasets and workflows. | ||
|
||
To activate tab completion for your supported shell run the following command after installing Renku CLI: | ||
|
||
.. tabs:: | ||
|
||
.. tab:: bash | ||
|
||
.. code-block:: console | ||
$ eval "$(_RENKU_COMPLETE=bash_source renku)" | ||
.. tab:: fish | ||
|
||
.. code-block:: console | ||
$ eval (env _RENKU_COMPLETE=fish_source renku) | ||
.. tab:: zsh | ||
|
||
.. code-block:: console | ||
$ eval "$(_RENKU_COMPLETE=zsh_source renku)" | ||
After this not only sub-commands of ``renku`` will be auto-completed using tab, but for example | ||
in case of ``renku workflow execute`` the available ``Plans`` are going to be listed. | ||
|
||
.. code-block:: console | ||
$ renku workflow execute run<TAB> | ||
run1 run10 run11 run12 run13 run14 run2 run3 run4 run7 run8 | ||
.. note:: | ||
|
||
Tab completion of available ``Plans`` only works if the user is executing the command | ||
within a Renku project. | ||
|
||
|
||
For more information on how to set up shell auto-completion, see documentation for the Click library, | ||
which used under the hood by Renku CLI: | ||
`shell completion <https://click.palletsprojects.com/en/8.0.x/shell-completion/>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,4 +249,5 @@ worktrees | |
yaml | ||
yml | ||
Zenodo | ||
zsh | ||
連句 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.