Scrubs is a little documentation tool written in POSIX-Shell. It should make easier to work in teams in a suckless way, without having to it without any documentation.
There are two kinds of tags which are displayed in scrubs, DOC
and TODO
.
DOC
is used to document your functions or classes. It has the following structur:
/** DOC
* @type function
* @name some_random_function
*
* @param input * data
* the input data for processing
*
* @return output
*
* @description
* Here you have the function description.
* It is allowed to have multiple lines.
* Isn't that cool?
*/
The TODO
tag has the following structur:
/** TODO
* @category some_bug
*
* @description
* Some weird bug lol
* what is this???
*/
For more examples see example.cpp
There is a Makefile so you are able to install scrubs
with:
sudo make install
Note that if you want to use the search
functionality of scrubs
you have to install fzf
.
To uninstall
sudo make uninstall