Add use case to README
This commit is contained in:
parent
9c2102ae9d
commit
eb0328cb78
1 changed files with 6 additions and 2 deletions
|
@ -183,8 +183,9 @@ shell command and the second is an optional human-readable description.
|
||||||
Shell commands support an extended syntax as well, which provides more
|
Shell commands support an extended syntax as well, which provides more
|
||||||
fine-grained control. A command can be specified as a dictionary that contains
|
fine-grained control. A command can be specified as a dictionary that contains
|
||||||
the command to be run, a description, and whether `stdin`, `stdout`, and
|
the command to be run, a description, and whether `stdin`, `stdout`, and
|
||||||
`stderr` are enabled. In this syntax, all keys are optional except for the
|
`stderr` are enabled. Another useful key is `confirm` which, if true, prompts
|
||||||
command itself.
|
the user at install time, allowing them to not run that script that time.
|
||||||
|
In this syntax, all keys are optional except for the command itself.
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
|
@ -199,6 +200,9 @@ command itself.
|
||||||
-
|
-
|
||||||
command: read fail
|
command: read fail
|
||||||
stderr: true
|
stderr: true
|
||||||
|
-
|
||||||
|
command: rm -rf ~/.config
|
||||||
|
confirm: true
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
|
Loading…
Reference in a new issue