8000 feat(cli): add --output={text,json} to version cmd by johnstcn · Pull Request #7010 · coder/coder · GitHub
[go: up one dir, main page]

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
strings.ReplaceAll
  • Loading branch information
johnstcn committed Apr 5, 2023
commit b099e5c58c9f8dbb2fbbded3d559da7923cab3f8
2 changes: 1 addition & 1 deletion cli/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Full build of Coder, supports the server subcommand.
err := inv.WithContext(ctx).Run()
require.NoError(t, err)
actual := buf.String()
actual = strings.Replace(actual, "\r\n", "\n", -1)
actual = strings.ReplaceAll(actual, "\r\n", "\n")
require.Equal(t, tt.Expected, actual)
})
}
Expand Down
0