We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
coder template init
1 parent 60aa7fb commit ec6b464Copy full SHA for ec6b464
cli/templateinit.go
@@ -24,8 +24,13 @@ func templateInit() *cobra.Command {
24
exampleNames := []string{}
25
exampleByName := map[string]examples.Example{}
26
for _, example := range exampleList {
27
- exampleNames = append(exampleNames, example.Name)
28
- exampleByName[example.Name] = example
+ name := fmt.Sprintf(
+ "%s\n%s\n",
29
+ cliui.Styles.Bold.Render(example.Name),
30
+ cliui.Styles.Wrap.Copy().PaddingLeft(6).Render(example.Description),
31
+ )
32
+ exampleNames = append(exampleNames, name)
33
+ exampleByName[name] = example
34
}
35
36
_, _ = fmt.Fprintln(cmd.OutOrStdout(), cliui.Styles.Wrap.Render(
0 commit comments