Skip to content

Add a version command / --version flag #7

Description

@joelhelbling

tabb has no way to report its own version. main.go only dispatches host, list/ls, show, close, focus, mcp, profiles, setup, and help — there is no version subcommand and no --version/-v flag.

Current workaround

The version can only be recovered from the binary out-of-band, e.g.:

go version -m $(command -v tabb)
# mod  github.com/joelhelbling/tabb  v0.0.0-20260416142648-808c14d6dedb

…or by comparing git rev-parse --short HEAD against the build. This works because Go stamps VCS info automatically, but it is not discoverable for users who just installed the binary.

Proposal

Add a tabb version subcommand (plus --version/-v flag) that reports build info using runtime/debug.ReadBuildInfo(). That surfaces the embedded VCS revision and build time without requiring go version -m, and needs no -ldflags plumbing.

Suggested output:

tabb 808c14d (built 2026-04-16T14:26:48Z)

Tasks

  • Add version case to the command switch in cmd/tabb/main.go
  • Add --version/-v handling
  • Read VCS revision + build time via runtime/debug.ReadBuildInfo()
  • Document the command in printUsage(), README, and CLAUDE.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions