mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
Add link to blog post
This commit is contained in:
parent
93058e4e56
commit
1b16de7cf5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue