| Crates.io | bashdoc |
| lib.rs | bashdoc |
| version | 0.6.0 |
| created_at | 2018-12-18 22:29:36.767248+00 |
| updated_at | 2024-12-12 19:37:23.105562+00 |
| description | A tool for generating documentation/help menu for user defined bash functions. |
| homepage | https://github.com/dustinknopoff/bashdoc |
| repository | https://github.com/dustinknopoff/bashdoc |
| max_upload_size | |
| id | 102598 |
| size | 92,498 |
A tool for generating documentation/help menu for user defined bash functions any folder or file with 6 generic delimiters defined.
Using syntax similar to below
#;
# cd()
# moves to given directory
# @param directory: folder to move to
# @return void
#"
cd() {
cd $1
}
on my zshrc Outputs

with lots of color!
The default delimiters to use are as follows:
START_DELIM = #;
END_DELIM = #"
PAR_DELIM = @param
RET_DELIM = @return
OPT_DELIM = # -
COMM_DELIM = #
These can be modifed in your .bashdocrc.
cargo install bashdoc
or from source
NOTE: Must use Rust 2018 Edition
update with rustup update stable
git clone https://github.com/dustinknopoff/bashdoc
cd bashdoc
cargo install --path . --force
bashdoc 0.4.10
Creates a "javadoc" like structure for bash. See github repo github.com/dustinknopoff/bashdoc for information on formatting.
USAGE:
bashdoc [FLAGS] [OPTIONS] <INPUT> [SUBCOMMAND]
FLAGS:
-c, --color toggles color
-h, --help Prints help information
-V, --version Prints version information
-w, --watch continuously update on change
OPTIONS:
-j, --json <FILE> print result as JSON
-l, --location <location> location to save HTML
-t, --template <template> .hbs template to use for generation of documentation
ARGS:
<INPUT> Sets the input file or glob pattern to use
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
override override the delimiters
See the examples folder for more.
See the changelog for updates
~/.bashdocrc--html argument removed replaced with --location, --template argument added for supplying custom .hbs--location.bashdocrc within a directory.License: MIT