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 fcc5284 commit 1a9e572Copy full SHA for 1a9e572
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