You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Fprintln(cmd.OutOrStdout(), cliui.Styles.Wrap.Render("Templates contain Infrastructure as Code that works with Coder to provision development workspaces. Get started by selecting one:\n"))
32
-
30
+
_, _=fmt.Fprintln(cmd.OutOrStdout(), cliui.Styles.Wrap.Render("Templates contain Infrastructure as Code that works with Coder to provision development workspaces. Get started by selecting one:\n"))
Copy file name to clipboardExpand all lines: cli/root.go
+13-19Lines changed: 13 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ import (
5
5
"os"
6
6
"strings"
7
7
8
-
"github.com/fatih/color"
8
+
"github.com/charmbracelet/lipgloss"
9
9
"github.com/kirsle/configdir"
10
10
"github.com/mattn/go-isatty"
11
11
"github.com/spf13/cobra"
@@ -33,32 +33,26 @@ func Root() *cobra.Command {
33
33
▄▄██▀▀█▄▄▄ ██ ██ █▀▀█ ▐█▀▀██ ▄█▀▀█ █▀▀
34
34
█▌ ▄▌ ▐█ █▌ ▀█▄▄▄█▌ █ █ ▐█ ██ ██▀▀ █
35
35
██████▀▄█ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀ ▀
36
-
`+color.New(color.Underline).Sprint("Self-hosted developer workspaces on your infra") +`
36
+
`+lipgloss.NewStyle().Underline(true).Render("Self-hosted developer workspaces on your infra") +`
37
37
38
38
`,
39
-
Example: `
40
-
- Create a project for developers to create workspaces
39
+
Example: cliui.Styles.Paragraph.Render(`Start Coder in "dev" mode. This dev-mode requires no further setup, and your local `+cliui.Styles.Code.Render("coder")+` CLI will be authenticated to talk to it. This makes it easy to experiment with Coder.`) +`
0 commit comments