diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-09 19:36:36 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-09 19:36:36 +0100 |
| commit | 5531ad3917faae6d6bed3ce5efcff8638cee8fba (patch) | |
| tree | 9864125eb8da11278d30fa1d8bdb0ac1777851ad | |
| parent | 7db61c4a1116c0f09baf6e4cc04488e0f7584dee (diff) | |
| -rwxr-xr-x | scrubs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,8 +27,8 @@ todos() { sed -e 's/^\*/ /g' | \ sed -E 's/@category (.*)/\\033[34m\1\\033[0m/g' | \ sed -E 's/@([^ ]*)[ ]*(.*)/\\033[2m\1\\033[0m \\033[33m\2\\033[0m/g' | \ - sed -E 's/__([^__]*)__/\\033[1m\1\\033[0m/g' | \ - sed -E 's/_([^_]*)_/\\033[3m\1\\033[0m/g')\n" + sed -E 's/``([^``]*)``/\\033[1m\1\\033[0m/g' | \ + sed -E 's/`([^`]*)`/\\033[3m\1\\033[0m/g')\n" } get_docs() { @@ -59,8 +59,8 @@ doc() { sed -E 's/@type (.*)/\\033[32m\1\\033[0m/g' | \ sed -E 's/@name (.*)/\\033[34m\1\\033[0m/g' | \ sed -E 's/@([^ ]*)[ ]*(.*)/\\033[2m\1\\033[0m \\033[33m\2\\033[0m/g' | \ - sed -E 's/__([^__]*)__/\\033[1m\1\\033[0m/g' | \ - sed -E 's/_([^_]*)_/\\033[3m\1\\033[0m/g') + sed -E 's/``([^``]*)``/\\033[1m\1\\033[0m/g' | \ + sed -E 's/`([^`]*)`/\\033[3m\1\\033[0m/g') if [ "$(printf "%s" "$output" | wc -l)" -eq 0 ]; then printf "%s\n" "There is no documentation for '$1' '$2'" |