Pynosaur

Modern CLI tools with better UX

View the Project on GitHub Pynosaur/pynosaur

doc

Documentation viewer for Pynosaur CLI tools

Overview

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

Features

Installation

# 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/

Usage

Basic Usage

# View documentation for a tool
doc <tool_name>

# Examples
doc pget
doc see
doc yday

# Show help
doc --help

# Show version
doc --version

How It Works

doc searches for documentation in the following order:

  1. Bundled doc/ directory in the doc tool itself
  2. Installed helper docs at ~/.pget/helpers/<tool>/doc/<tool>.yaml
  3. If nothing is found, exits with an error

Documentation Format

Documentation 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:

Use Cases

Quick Reference

# Quickly check command syntax
doc see
doc purl

Learning Tools

# Understand what a tool does
doc pget

Offline Documentation

# No internet needed - docs are local
doc yday

Requirements

Platform Support


← Back to HomeView on GitHub