feat: add timestamps to output at end of some workspace and template subcommands (#2831)

This commit is contained in:
Ketan Gangatirkar
2022-07-08 14:27:56 -05:00
committed by GitHub
parent 584448e089
commit 2609be767d
9 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ func templateCreate() *cobra.Command {
}
_, _ = fmt.Fprintln(cmd.OutOrStdout(), "\n"+cliui.Styles.Wrap.Render(
"The "+cliui.Styles.Keyword.Render(templateName)+" template has been created! "+
"The "+cliui.Styles.Keyword.Render(templateName)+" template has been created at "+cliui.Styles.DateTimeStamp.Render(time.Now().Format(time.Stamp))+"! "+
"Developers can provision a workspace with this template using:")+"\n")
_, _ = fmt.Fprintln(cmd.OutOrStdout(), " "+cliui.Styles.Code.Render(fmt.Sprintf("coder create --template=%q [workspace name]", templateName)))