version command exists but is hidden from tod --help #16
Sergi Baila opened 4 weeks ago

Summary

tod version is a real, working command — it prints the installed version (4.3.2) and has proper --help text ("Print the tod version") — but it does not appear in tod --help's "Available Commands" list, and it's also absent from the bash completion script's command set. It looks unintentionally hidden (e.g. a cobra Hidden: true left set, or simply left out of the help registration).

Impact

There's no discoverable way to check which version of tod is installed. tod --version and tod -v both fail as unknown flags, and the top-level help listing doesn't mention version at all — so a user has no way to find the command unless they already know its exact name in advance.

We ran into this directly while investigating TOD-15: to check whether a reported bug had already been fixed by a newer tod build, we had no way to confirm the installed version through the CLI itself, and had to fall back to checking the compiled binary's file modification date and cross-referencing the GitHub releases page.

Suggested fix

Un-hide version from the top-level command list (and from shell completions), so it's discoverable the same way every other subcommand is.

1/1
Type
Bug
Priority
Minor
Assignee
Affected Versions
4.3.2
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
TOD-16
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover