You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document shell completions and restyled help/version output (fang) #161
inference-gateway/cli PR #592 (merged) adopted fang to wrap rootCmd execution. This adds user-facing surface that is not yet documented:
New infer completion subcommand that generates shell completions for bash, zsh, fish, and powershell.
Restyled help output (infer --help and per-subcommand --help).
Restyled error rendering for unknown commands/flags (non-zero exit with a styled message).
Styled infer --version output. The manual --version bool flag was replaced by fang's version handling; the version subcommand is kept for backwards compatibility.
cli.md - add a "Shell Completions" subsection under Installation (or Quick Start) with per-shell install steps; refresh the "Get help" snippet and any help/version output samples to match the new styled rendering.
getting-started.md - optional pointer to enabling completions right after install.
troubleshooting.md - optional note for when completions are not picked up (shell rc not sourcing the completion file).
Suggested content (completion install examples)
# Zsh (current session)source<(infer completion zsh)# Zsh (persistent) - write to a directory on $fpath
infer completion zsh >"${fpath[1]}/_infer"# Bash
infer completion bash > /etc/bash_completion.d/infer
# Fish
infer completion fish >~/.config/fish/completions/infer.fish
# PowerShell
infer completion powershell | Out-String | Invoke-Expression
Acceptance Criteria
cli.md documents the infer completion subcommand with install steps for bash, zsh, fish, and powershell.
Help and version sample output (or screenshots) in cli.md reflect the new fang-styled rendering.
Behavior of the version subcommand vs the --version flag is described (both supported; --version now styled by fang).
Root-level getting-started.md and troubleshooting.md document the gateway server (Docker/K8s, auth, MCP), not the infer CLI. The optional completion pointers were kept inside cli.md - which owns CLI content and has its own Troubleshooting section - rather than forcing CLI content into the gateway pages. Let me know if you'd prefer a pointer added to those pages anyway.
Create a PR | | Branch: docs/issue-161-20260605-0106
Activity
edenreich commentedon Jun 5, 2026
@claude Can you document it? use /maintainer
claude commentedon Jun 5, 2026
Claude finished @edenreich's task in 7m 13s —— View job •
docs/issue-161-20260605-0106Documenting fang shell completions and restyled help/version output
Done. Opened PR #162 documenting the fang surface from inference-gateway/cli#592. All changes are in
cli.md.cli.md,getting-started.md,troubleshooting.md, maintainer refs)cmd/root.go(charm.land/fang/v2,fang.WithVersion;-vis--verbose)### Shell Completionsunder Installation (bash, zsh, fish, powershell)## Help and Version Output(styled help, styled errors, styled version)versionsubcommand vs--versionflag (both supported)infer completion <shell>,infer version)### Shell Completions Not Workingtroubleshooting entryformat:check,lint:md,buildall pass; content is SSR'd intodist/cli/index.html)6e3d68a) and open PRAcceptance criteria
cli.mddocumentsinfer completionwith install steps for bash, zsh, fish, powershellversionsubcommand vs--versionflag behavior described (both supported;--versionstyled by fang)Scope decision
Root-level
getting-started.mdandtroubleshooting.mddocument the gateway server (Docker/K8s, auth, MCP), not theinferCLI. The optional completion pointers were kept insidecli.md- which owns CLI content and has its own Troubleshooting section - rather than forcing CLI content into the gateway pages. Let me know if you'd prefer a pointer added to those pages anyway.Create a PR | | Branch:
docs/issue-161-20260605-0106