diff --git a/docs/shell_scripting.md b/docs/shell_scripting.md index edcca0c..ae807cb 100644 --- a/docs/shell_scripting.md +++ b/docs/shell_scripting.md @@ -1,6 +1,8 @@ Using it for shell scripting ---------------------------- +For a real world scenario example, please check this [blog post](https://denisidoro.github.io/posts/cli-templates/). + Let's say you want to write a bash script that, among other things, asks the user to write the name of a git branch that should be checked out. If you already have the [cheatsheet above](#cheatsheet-syntax), then you could write the following in your script: @@ -29,4 +31,4 @@ If you want to select the best match for ``: branch__best="master" navi --query "change branch" --best-match ``` - no interactive input will be shown -- the value for `` will be the one that best matches the one passed as argument \ No newline at end of file +- the value for `` will be the one that best matches the one passed as argument