Skip to content
gmars1Public

About

πŸ“ƒ Rust CLI/TUI that detects when your markdown docs become stale

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ idocs

CLI tool that detects when your markdown docs become stale relative to source files.

Track which source files your documentation references. When a source changes, idocs flags the doc as stale β€” re-hash after review to acknowledge it's up to date.


examples

cli

example

tui

tui

tui after editing main.rs

tui_modified

Install

Prebuilt binaries

Download from Releases:

Platform Binary
Linux (x86_64) idocs-x86_64-linux
macOS (x86_64) idocs-x86_64-macos
Windows (x86_64) idocs-x86_64-windows.exe
Arch Linux (x86_64) idocs-x86_64-linux-arch

Build from source (any platform)

# requires Rust toolchain
cargo install --git https://github.com/gmars1/idocs

Quick start

idocs init
idocs add auth src/auth.rs src/login.rs   # register doc
idocs                                      # check all
idocs -i                                   # TUI mode

Commands

idocs β€” check all docs, show valid/stale
idocs <file> β€” filter docs tracking a specific source file
idocs init β€” initialize .idocs directory
idocs add <name> <sources...> β€” register a doc tracking source files
idocs rm <name> β€” remove a doc
idocs info <name> β€” doc details with source status
idocs up <name> β€” re-hash sources after review
idocs stale β€” list only stale docs
idocs read <name> β€” print doc content
idocs edit <name> --set "..." β€” replace entire doc content
idocs edit <name> --lines N-M --text "..." β€” replace a range of lines
idocs edit <name> --replace "x" --with "y" β€” find-and-replace
idocs edit <name> --rehash β€” update source hashes after editing
idocs edit <name> (stdin pipe) β€” read new content from stdin
idocs -i β€” interactive TUI (two-panel viewer)
idocs --json β€” machine-readable output

About

πŸ“ƒ Rust CLI/TUI that detects when your markdown docs become stale

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages