forked from reconquest/shdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Allow for indented function description (fix reconquest#50).
- Add common code for multiline support for: description, example, stdout, stderr, stdin, set, see, and exitcode.
- Loading branch information
Showing
7 changed files
with
325 additions
and
76 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
|
||
tests:put input <<EOF | ||
# @name Project Name | ||
# @brief Brief | ||
# @description the file description | ||
# with some more lines | ||
# @description The func b description | ||
# @exitcode 0 If everything is alright. | ||
# @exitcode 1 If one of this errors occured : | ||
# | ||
# - Bad number of arguments: | ||
# - Too many arguments. | ||
# - Too few arguments. | ||
# - Invalid argument format. | ||
# | ||
# @exitcode >1 If a issue occured during processing, | ||
# with a long comment here on the issue. | ||
b() { | ||
} | ||
EOF | ||
|
||
tests:put expected <<EOF | ||
# Project Name | ||
Brief | ||
## Overview | ||
the file description | ||
with some more lines | ||
## Index | ||
* [b](#b) | ||
### b | ||
The func b description | ||
#### Exit codes | ||
* **0**: If everything is alright. | ||
* **1**: If one of this errors occured : | ||
- Bad number of arguments: | ||
- Too many arguments. | ||
- Too few arguments. | ||
- Invalid argument format. | ||
* **>1**: If a issue occured during processing, | ||
with a long comment here on the issue. | ||
EOF | ||
|
||
assert |
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
Oops, something went wrong.