mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat(cli): add --output={text,json} to version cmd (#7010)
* feat(cliui): add TextFormat * feat(cli): add --format={text,json} to version cmd
This commit is contained in:
@ -50,6 +50,9 @@ func Test_OutputFormatter(t *testing.T) {
|
||||
require.Panics(t, func() {
|
||||
cliui.NewOutputFormatter(cliui.JSONFormat())
|
||||
})
|
||||
require.NotPanics(t, func() {
|
||||
cliui.NewOutputFormatter(cliui.JSONFormat(), cliui.TextFormat())
|
||||
})
|
||||
})
|
||||
|
||||
t.Run("NoMissingFormatID", func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user