Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 584ceab

Browse files
committed
Fix \n not being rendered with backquotes
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent ffe309f commit 584ceab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli/cmd/compose/compose.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ func Command(contextType string) *cobra.Command {
111111
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
112112
if noAnsi {
113113
if ansi != "auto" {
114-
return errors.New(aec.Apply(`cannot specify DEPRECATED "--no-ansi" and "--ansi". Please use only "--ansi".`, aec.RedF))
114+
return errors.New(`cannot specify DEPRECATED "--no-ansi" and "--ansi". Please use only "--ansi"`)
115115
}
116116
ansi = "never"
117117
fmt.Fprint(os.Stderr, aec.Apply("option '--no-ansi' is DEPRECATED ! Please use '--ansi' instead.\n", aec.RedF))
118118
}
119119
formatter.SetANSIMode(ansi)
120120
if opts.WorkDir != "" {
121121
if opts.ProjectDir != "" {
122-
return errors.New(aec.Apply(`cannot specify DEPRECATED "--workdir" and "--project-directory". Please use only "--project-directory" instead.`, aec.RedF))
122+
return errors.New(`cannot specify DEPRECATED "--workdir" and "--project-directory". Please use only "--project-directory" instead`)
123123
}
124124
opts.ProjectDir = opts.WorkDir
125125
fmt.Fprint(os.Stderr, aec.Apply("option '--workdir' is DEPRECATED at root level! Please use '--project-directory' instead.\n", aec.RedF))

cli/cmd/compose/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func pullCommand(p *projectOptions) *cobra.Command {
4747
Short: "Pull service images",
4848
RunE: func(cmd *cobra.Command, args []string) error {
4949
if opts.noParallel {
50-
fmt.Fprint(os.Stderr, aec.Apply(`option "--no-parallel" is DEPRECATED and will be ignored.\n`, aec.RedF))
50+
fmt.Fprint(os.Stderr, aec.Apply("option '--no-parallel' is DEPRECATED and will be ignored.\n", aec.RedF))
5151
}
5252
return runPull(cmd.Context(), opts, args)
5353
},

0 commit comments

Comments
 (0)