A framework for building custom CLIs around shell and executables. Commands are defined in yaml and can be sub-commands, shell, or an executable. By convention your root yaml file lives in a directory named the same as your cli name and sub-command configuration in sub directories following the same pattern.
Install
Homebrew
brew tap matthewwoodruff/sdoc https://github.com/matthewwoodruff/sdoc
brew install sdoc
Cargo
cargo install sdoc
Manual
You can download the binary from GitHub Releases and add to your $PATH
Create CLI
Create a new directory for your CLI mkdir <cli-name>
Execute sdoc init and follow the prompts
Your CLI will be available by executing ./bin/<cli-name>
Modify ./<my-cli>/commands.yaml to add custom commands and sub-commands
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.