Description
Problem
Installation currently requires not just downloading pre-built binaries via GitHub Releases, but also cloning the repo or otherwise downloading the docopts.sh
helper.
Suggested Solution
Distributing via a package manager could make it much easier to get started with docopts
, especially for Shell projects that don't have a language-specific package manager to use.
On macOS at least, Homebrew is the defacto default package manager (Brew also works on Linux, though there are better package managers available there). Can create a repo under the docopt
organization, homebrew-docopt
which will serve as the Homebrew Tap. Taps are just git repos (with Ruby code), so it's relatively straightforward in that sense.
An example of a simple Homebrew tap is Instrumenta's (creator of Conftest, kubeval
, etc).
As you can see there, a simple Formula can just reference a GitHub Release, acting as a simple wrapper around the existing pre-built binaries.
Contributing
Would be happy to contribute building this or even build a standalone repo myself and transfer it to the docopt
organization if that is acceptable.
Misc
I used docopts
at my last job and it helped a ton with both documentation and arg/option parsing, but installation was my team's main gripe with it. Awesome tool that I would love to make easier to install!