Skip to content

Commit ab23b80

Browse files
committed
Add deprecation warning
1 parent e7a3163 commit ab23b80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cli/templatecreate.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ func (r *RootCmd) templateCreate() *clibase.Cmd {
4747
r.InitClient(client),
4848
),
4949
Handler: func(inv *clibase.Invocation) error {
50+
_, _ = fmt.Fprintln(inv.Stdout, "\n"+pretty.Sprint(cliui.DefaultStyles.Wrap,
51+
pretty.Sprint(
52+
cliui.DefaultStyles.Warn, "DEPRECATION WARNING: The `coder templates push` command should be used instead. This command will be removed in a future release. ")+"\n"))
53+
time.Sleep(1 * time.Second)
54+
5055
err := createEntitlementsCheck(inv.Context(), handleEntitlementsArgs{
5156
client: client,
5257
requireActiveVersion: requireActiveVersion,

0 commit comments

Comments
 (0)