Modern CLI tools with better UX
Documentation viewer for Pynosaur CLI tools
doc is a documentation viewer designed for Pynosaur CLI tools. It reads YAML documentation files packaged with each tool and displays them in a pager with a clean, man-like interface.
Full Name: Documentation Viewer
Version: 0.1.1
Equivalent: man
Repository: github.com/pynosaur/doc
# Via pget
pget install doc
# From source
git clone https://github.com/pynosaur/doc.git
cd doc
bazel build //:doc_bin
cp bazel-bin/doc ~/.local/bin/
# View documentation for a tool
doc <tool_name>
# Examples
doc pget
doc see
doc yday
# Show help
doc --help
# Show version
doc --version
doc searches for documentation in the following order:
doc/ directory in the doc tool itself~/.pget/helpers/<tool>/doc/<tool>.yamlDocumentation is stored in YAML files with the following structure:
NAME: tool_name
VERSION: "0.1.0"
DESCRIPTION: Brief description of the tool
USAGE:
- "tool_name [options]"
- "tool_name --help"
OPTIONS:
- "-h, --help Show help message"
- "-v, --version Show version"
OUTPUT: Description of output format
AUTHOR: "@username"
DATE: "YYYY-MM-DD"
NOTES: []
When viewing documentation in the pager:
# Quickly check command syntax
doc see
doc purl
# Understand what a tool does
doc pget
# No internet needed - docs are local
doc yday