Documentation
¶
Overview ¶
Command docgen generates the shell completions and man pages that are bundled into release archives (and installed by the Homebrew formula). It is a build-time tool only — it is never compiled into the vibexp binary, so the `go install github.com/vibexp/cli/cmd/vibexp@latest` path stays free of its extra dependencies (cobra/doc, go-md2man).
Usage: go run ./cmd/docgen [output-dir] version
output-dir where to write (defaults to ".")
version stamped into the man-page header; defaults to version.Version.
The goreleaser before-hook passes the release version, since
`go run` builds carry no -ldflags.
It writes:
<output-dir>/completions/vibexp.{bash,zsh,fish,ps1}
<output-dir>/manpages/vibexp*.1