Skip to content

feat(cli): add --output={text,json} to version cmd #7010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 5, 2023
Prev Previous commit
Next Next commit
fixup! feat(cli): add --json output to version cmd
  • Loading branch information
johnstcn committed Apr 5, 2023
commit caf2b46452c28314f71a404cada875a00604e62b
6 changes: 5 additions & 1 deletion cli/testdata/coder_version_--help.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Usage: coder version
Usage: coder version [flags]

Show coder version

Options
--json bool
Emit version information in machine-readable JSON format.

---
Run `coder --help` for a list of global options.