Skip to content

Commit 2044847

Browse files
committed
fix text formatting
1 parent edf30ca commit 2044847

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

cli/cliui/deprecation.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
package cliui
22

33
import (
4+
"fmt"
5+
46
"github.com/coder/coder/v2/cli/clibase"
57
"github.com/coder/pretty"
68
)
79

810
func DeprecationWarning(message string) clibase.MiddlewareFunc {
911
return func(next clibase.HandlerFunc) clibase.HandlerFunc {
1012
return func(i *clibase.Invocation) error {
11-
pretty.Sprint(
12-
DefaultStyles.Warn,
13-
"DEPRECATION WARNING: This command will be removed in a future release. \n"+message+"\n")
13+
_, _ = fmt.Fprintln(i.Stdout, "\n"+pretty.Sprint(DefaultStyles.Wrap,
14+
pretty.Sprint(
15+
DefaultStyles.Warn,
16+
"DEPRECATION WARNING: This command will be removed in a future release."+"\n"+message+"\n"),
17+
))
1418
return next(i)
1519
}
1620
}

cli/templatecreate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (r *RootCmd) templateCreate() *clibase.Cmd {
4040
Middleware: clibase.Chain(
4141
clibase.RequireRangeArgs(0, 1),
4242
cliui.DeprecationWarning(
43-
"Use `coder templates push` command for creating and updating templates. "+
43+
"Use `coder templates push` command for creating and updating templates. \n"+
4444
"Use `coder templates edit` command for editing template settings. ",
4545
),
4646
r.InitClient(client),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy