Skip to content

Commit 4f29f9a

Browse files
authored
fixup! fix(cli): speed up CLI over SSH (#7885) (#7888)
1 parent 8c4b6b0 commit 4f29f9a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cli/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ func formatExamples(examples ...example) string {
687687
" - " + padStyle.Render(e.Description + ":")[4:] + "\n\n ",
688688
)
689689
}
690-
// We add 1 space here because `cliui.Styles.Code` adds an extra
690+
// We add 1 space here because `cliui.DefaultStyles.Code` adds an extra
691691
// space. This makes the code block align at an even 2 or 6
692692
// spaces for symmetry.
693693
_, _ = sb.WriteString(" " + cliui.DefaultStyles.Code.Render(fmt.Sprintf("$ %s", e.Command)))

cli/server_slim.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (r *RootCmd) Server(_ func(context.Context, *coderd.Options) (*coderd.API,
3030
}
3131

3232
func serverUnsupported(w io.Writer) {
33-
_, _ = fmt.Fprintf(w, "You are using a 'slim' build of Coder, which does not support the %s subcommand.\n", cliui.Styles.Code.Render("server"))
33+
_, _ = fmt.Fprintf(w, "You are using a 'slim' build of Coder, which does not support the %s subcommand.\n", cliui.DefaultStyles.Code.Render("server"))
3434
_, _ = fmt.Fprintln(w, "")
3535
_, _ = fmt.Fprintln(w, "Please use a build of Coder from GitHub releases:")
3636
_, _ = fmt.Fprintln(w, " https://github.com/coder/coder/releases")

enterprise/cli/proxyserver_slim.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (r *RootCmd) proxyServer() *clibase.Cmd {
2929
}
3030

3131
func serverUnsupported(w io.Writer) {
32-
_, _ = fmt.Fprintf(w, "You are using a 'slim' build of Coder, which does not support the %s subcommand.\n", cliui.Styles.Code.Render("server"))
32+
_, _ = fmt.Fprintf(w, "You are using a 'slim' build of Coder, which does not support the %s subcommand.\n", cliui.DefaultStyles.Code.Render("server"))
3333
_, _ = fmt.Fprintln(w, "")
3434
_, _ = fmt.Fprintln(w, "Please use a build of Coder from GitHub releases:")
3535
_, _ = fmt.Fprintln(w, " https://github.com/coder/coder/releases")

0 commit comments

Comments
 (0)