-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement shelldocexitcode and shelldocwhatever options.
- Loading branch information
Mirko Boehm (Endocode)
committed
Jul 6, 2018
1 parent
e731ac0
commit 1d8c3e2
Showing
3 changed files
with
37 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Tests for shelldoc options in fenced code blocks | ||
|
||
This one says the exit code of the command does not matter: | ||
|
||
```shell {shelldocwhatever} | ||
> false | ||
``` | ||
|
||
This one specifies that the exit code should be 2: | ||
|
||
```shell {shelldocexitcode=2} | ||
> (exit 2) | ||
``` | ||
|
||
More options may follow. |