Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2044847

Browse files
committed
fix text formatting
1 parentedf30ca commit2044847

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
funcDeprecationWarning(messagestring) clibase.MiddlewareFunc {
911
returnfunc(next clibase.HandlerFunc) clibase.HandlerFunc {
1012
returnfunc(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
returnnext(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)

[8]ページ先頭

©2009-2025 Movatter.jp