Add link to blog post

This commit is contained in:
Denis Isidoro 2021-01-18 10:53:50 -03:00 committed by GitHub
parent 93058e4e56
commit 1b16de7cf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>`:
branch__best="master" navi --query "change branch" --best-match
```
- no interactive input will be shown
- the value for `<branch>` will be the one that best matches the one passed as argument
- the value for `<branch>` will be the one that best matches the one passed as argument