Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae8a7f0

Browse files
committedSep 1, 2021
Removed unnecessary fmt.*printf
1 parent 4d5a472 commit ae8a7f0

35 files changed

+300
-337
lines changed
 

‎arduino/builder/compilation_database.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ func LoadCompilationDatabase(file *paths.Path) (*CompilationDatabase, error) {
6060
// see https://clang.llvm.org/docs/JSONCompilationDatabase.html
6161
func (db *CompilationDatabase) SaveToFile() {
6262
if jsonContents, err := json.MarshalIndent(db.Contents, "", " "); err != nil {
63-
fmt.Printf(tr("Error serializing compilation database: %s"), err)
63+
fmt.Println(tr("Error serializing compilation database: %s", err))
6464
return
6565
} else if err := db.File.WriteFile(jsonContents); err != nil {
66-
fmt.Printf(tr("Error writing compilation database: %s"), err)
66+
fmt.Println(tr("Error writing compilation database: %s", err))
6767
}
6868
}
6969

@@ -75,7 +75,7 @@ func dirForCommand(command *exec.Cmd) string {
7575
}
7676
dir, err := os.Getwd()
7777
if err != nil {
78-
fmt.Printf(tr("Error getting current directory for compilation database: %s"), err)
78+
fmt.Println(tr("Error getting current directory for compilation database: %s", err))
7979
return ""
8080
}
8181
return dir

‎arduino/discovery/discovery.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ type discoveryMessage struct {
7171
func (msg discoveryMessage) String() string {
7272
s := fmt.Sprintf("type: %s", msg.EventType)
7373
if msg.Message != "" {
74-
s = fmt.Sprintf(tr("%[1]s, message: %[2]s"), s, msg.Message)
74+
s = tr("%[1]s, message: %[2]s", s, msg.Message)
7575
}
7676
if msg.ProtocolVersion != 0 {
77-
s = fmt.Sprintf(tr("%[1]s, protocol version: %[2]d"), s, msg.ProtocolVersion)
77+
s = tr("%[1]s, protocol version: %[2]d", s, msg.ProtocolVersion)
7878
}
7979
if len(msg.Ports) > 0 {
80-
s = fmt.Sprintf(tr("%[1]s, ports: %[2]s"), s, msg.Ports)
80+
s = tr("%[1]s, ports: %[2]s", s, msg.Ports)
8181
}
8282
if msg.Port != nil {
83-
s = fmt.Sprintf(tr("%[1]s, port: %[2]s"), s, msg.Port)
83+
s = tr("%[1]s, port: %[2]s", s, msg.Port)
8484
}
8585
return s
8686
}

‎arduino/libraries/librariesmanager/librariesmanager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var tr = i18n.Tr
6262
// Add adds a library to the alternatives
6363
func (alts *LibraryAlternatives) Add(library *libraries.Library) {
6464
if len(alts.Alternatives) > 0 && alts.Alternatives[0].Name != library.Name {
65-
panic(fmt.Sprintf(tr("the library name is different from the set (%[1]s != %[2]s)"), alts.Alternatives[0].Name, library.Name))
65+
panic(fmt.Sprintf("the library name is different from the set (%[1]s != %[2]s)", alts.Alternatives[0].Name, library.Name))
6666
}
6767
alts.Alternatives = append(alts.Alternatives, library)
6868
}

‎arduino/serialutils/serialutils.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ func Reset(portToTouch string, wait bool, cb *ResetProgressCallbacks, dryRun boo
130130
// do nothing!
131131
} else {
132132
if err := TouchSerialPortAt1200bps(portToTouch); err != nil {
133-
fmt.Printf(tr("TOUCH: error during reset: %s"), err)
134-
fmt.Println()
133+
fmt.Println(tr("TOUCH: error during reset: %s", err))
135134
}
136135
}
137136
}

‎arduino/sketch/sketch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ type InvalidSketchFolderNameError struct {
256256
}
257257

258258
func (e *InvalidSketchFolderNameError) Error() string {
259-
return fmt.Sprintf(tr("no valid sketch found in %[1]s: missing %[2]s"), e.SketchFolder, e.SketchFile)
259+
return tr("no valid sketch found in %[1]s: missing %[2]s", e.SketchFolder, e.SketchFile)
260260
}
261261

262262
// CheckForPdeFiles returns all files ending with .pde extension

‎cli/board/attach.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func initAttachCommand() *cobra.Command {
4242
Run: runAttachCommand,
4343
}
4444
attachCommand.Flags().StringVar(&attachFlags.searchTimeout, "timeout", "5s",
45-
fmt.Sprintf(tr("The connected devices search timeout, raise it if your board doesn't show up (e.g. to %s)."), "10s"))
45+
tr("The connected devices search timeout, raise it if your board doesn't show up (e.g. to %s).", "10s"))
4646
return attachCommand
4747
}
4848

‎cli/cli.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ func createCliCommandTree(cmd *cobra.Command) {
103103
cmd.AddCommand(version.NewCommand())
104104

105105
cmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, tr("Print the logs on the standard output."))
106-
cmd.PersistentFlags().String("log-level", "", fmt.Sprintf(tr("Messages with this level and above will be logged. Valid levels are: %s, %s, %s, %s, %s, %s, %s"), "trace", "debug", "info", "warn", "error", "fatal", "panic"))
106+
cmd.PersistentFlags().String("log-level", "", tr("Messages with this level and above will be logged. Valid levels are: %s", "trace, debug, info, warn, error, fatal, panic"))
107107
cmd.PersistentFlags().String("log-file", "", tr("Path to the file where logs will be written."))
108-
cmd.PersistentFlags().String("log-format", "", fmt.Sprintf(tr("The output format for the logs, can be {%s|%s}."), "text", "json"))
109-
cmd.PersistentFlags().StringVar(&outputFormat, "format", "text", fmt.Sprintf(tr("The output format, can be {%s|%s}."), "text", "json"))
108+
cmd.PersistentFlags().String("log-format", "", tr("The output format for the logs, can be: %s", "text, json"))
109+
cmd.PersistentFlags().StringVar(&outputFormat, "format", "text", tr("The output format for the logs, can be: %s", "text, json"))
110110
cmd.PersistentFlags().StringVar(&configFile, "config-file", "", tr("The custom config file (if not specified the default will be used)."))
111111
cmd.PersistentFlags().StringSlice("additional-urls", []string{}, tr("Comma-separated list of additional URLs for the Boards Manager."))
112112
cmd.PersistentFlags().Bool("no-color", false, "Disable colored output.")
@@ -196,7 +196,7 @@ func preRun(cmd *cobra.Command, args []string) {
196196
if logFile != "" {
197197
file, err := os.OpenFile(logFile, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
198198
if err != nil {
199-
fmt.Printf(tr("Unable to open file for logging: %s"), logFile)
199+
fmt.Println(tr("Unable to open file for logging: %s", logFile))
200200
os.Exit(errorcodes.ErrBadCall)
201201
}
202202

‎cli/compile/compile.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"bytes"
2020
"context"
2121
"encoding/json"
22-
"fmt"
2322
"os"
2423

2524
"github.com/arduino/arduino-cli/arduino/discovery"
@@ -94,7 +93,7 @@ func NewCommand() *cobra.Command {
9493
command.Flags().StringArrayVar(&buildProperties, "build-property", []string{},
9594
tr("Override a build property with a custom value. Can be used multiple times for multiple properties."))
9695
command.Flags().StringVar(&warnings, "warnings", "none",
97-
fmt.Sprintf(tr(`Optional, can be "%[1]s", "%[2]s", "%[3]s" and "%[4]s". Defaults to "%[1]s". Used to tell gcc which warning level to use (-W flag).`), "none", "default", "more", "all"))
96+
tr(`Optional, can be: %s. Used to tell gcc which warning level to use (-W flag).`, "none, default, more, all"))
9897
command.Flags().BoolVarP(&verbose, "verbose", "v", false, tr("Optional, turns on verbose mode."))
9998
command.Flags().BoolVar(&quiet, "quiet", false, tr("Optional, suppresses almost every output."))
10099
command.Flags().BoolVarP(&uploadAfterCompile, "upload", "u", false, tr("Upload the binary after the compilation."))
@@ -215,7 +214,7 @@ func run(cmd *cobra.Command, args []string) {
215214

216215
fields := map[string]string{}
217216
if len(userFieldRes.UserFields) > 0 {
218-
feedback.Printf(tr("Uploading to specified board using %s protocol requires the following info:"), discoveryPort.Protocol)
217+
feedback.Print(tr("Uploading to specified board using %s protocol requires the following info:", discoveryPort.Protocol))
219218
fields = arguments.AskForUserFields(userFieldRes.UserFields)
220219
}
221220

‎cli/config/init.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package config
1717

1818
import (
19-
"fmt"
2019
"os"
2120

2221
"github.com/arduino/arduino-cli/cli/errorcodes"
@@ -107,7 +106,7 @@ func runInitCommand(cmd *cobra.Command, args []string) {
107106
os.Exit(errorcodes.ErrGeneric)
108107
}
109108

110-
msg := fmt.Sprintf(tr("Config file written to: %s"), configFileAbsPath.String())
109+
msg := tr("Config file written to: %s", configFileAbsPath.String())
111110
logrus.Info(msg)
112111
feedback.Print(msg)
113112
}

‎cli/core/download.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ import (
3333

3434
func initDownloadCommand() *cobra.Command {
3535
downloadCommand := &cobra.Command{
36-
Use: fmt.Sprintf(tr("download [%s:%s[@%s]]..."), tr("PACKAGER"), tr("ARCH"), tr("VERSION")),
36+
Use: fmt.Sprintf("download [%s:%s[@%s]]...", tr("PACKAGER"), tr("ARCH"), tr("VERSION")),
3737
Short: tr("Downloads one or more cores and corresponding tool dependencies."),
3838
Long: tr("Downloads one or more cores and corresponding tool dependencies."),
3939
Example: "" +
40-
" " + os.Args[0] + " core download arduino:samd # " + tr("to download the latest version of Arduino SAMD core.\n") +
41-
" " + os.Args[0] + " core download arduino:samd@1.6.9 # " + tr("for a specific version (in this case 1.6.9)."),
40+
" " + os.Args[0] + " core download arduino:samd # " + tr("download the latest version of Arduino SAMD core.") + "\n" +
41+
" " + os.Args[0] + " core download arduino:samd@1.6.9 # " + tr("download a specific version (in this case 1.6.9)."),
4242
Args: cobra.MinimumNArgs(1),
4343
Run: runDownloadCommand,
4444
}

‎cli/core/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (ir installedResult) String() string {
8585
for _, p := range ir.platforms {
8686
name := p.Name
8787
if p.Deprecated {
88-
name = fmt.Sprintf(tr("[DEPRECATED] %s"), name)
88+
name = fmt.Sprintf("[%s] %s", tr("DEPRECATED"), name)
8989
}
9090
t.AddRow(p.Id, p.Installed, p.Latest, name)
9191
}

‎cli/core/search.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (sr searchResults) String() string {
115115
for _, item := range sr.platforms {
116116
name := item.GetName()
117117
if item.Deprecated {
118-
name = fmt.Sprintf(tr("[DEPRECATED] %s"), name)
118+
name = fmt.Sprintf("[%s] %s", tr("DEPRECATED"), name)
119119
}
120120
t.AddRow(item.GetId(), item.GetLatest(), name)
121121
}

‎cli/daemon/daemon.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var tr = i18n.Tr
4747
func NewCommand() *cobra.Command {
4848
cmd := &cobra.Command{
4949
Use: "daemon",
50-
Short: fmt.Sprintf(tr("Run as a daemon on port %s"), configuration.Settings.GetString("daemon.port")),
50+
Short: tr("Run as a daemon on port: %s", configuration.Settings.GetString("daemon.port")),
5151
Long: tr("Running as a daemon the initialization of cores and libraries is done only once."),
5252
Example: " " + os.Args[0] + " daemon",
5353
Args: cobra.NoArgs,

‎cli/debug/debug.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package debug
1717

1818
import (
1919
"context"
20-
"fmt"
2120
"os"
2221
"os/signal"
2322
"sort"
@@ -62,7 +61,7 @@ func NewCommand() *cobra.Command {
6261
debugCommand.Flags().StringVarP(&fqbn, "fqbn", "b", "", tr("Fully Qualified Board Name, e.g.: arduino:avr:uno"))
6362
port.AddToCommand(debugCommand)
6463
debugCommand.Flags().StringVarP(&programmer, "programmer", "P", "", tr("Programmer to use for debugging"))
65-
debugCommand.Flags().StringVar(&interpreter, "interpreter", "console", fmt.Sprintf(tr("Debug interpreter e.g.: %s, %s, %s, %s, %s"), "console", "mi", "mi1", "mi2", "mi3"))
64+
debugCommand.Flags().StringVar(&interpreter, "interpreter", "console", tr("Debug interpreter e.g.: %s", "console, mi, mi1, mi2, mi3"))
6665
debugCommand.Flags().StringVarP(&importDir, "input-dir", "", "", tr("Directory containing binaries for debug."))
6766
debugCommand.Flags().BoolVarP(&printInfo, "info", "I", false, tr("Show metadata about the debug session instead of starting the debugger."))
6867

@@ -151,7 +150,7 @@ func (r *debugInfoResult) String() string {
151150
conf := properties.NewFromHashmap(r.info.GetServerConfiguration())
152151
keys := conf.Keys()
153152
sort.Strings(keys)
154-
t.AddRow(fmt.Sprintf(tr("%s custom configurations"), r.info.GetServer()))
153+
t.AddRow(tr("Configuration options for %s", r.info.GetServer()))
155154
for _, k := range keys {
156155
t.AddRow(table.NewCell(" - "+k, dimGreen), table.NewCell(conf.Get(k), dimGreen))
157156
}

‎cli/lib/check_deps.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,16 @@ func outputDep(dep *rpc.LibraryDependencyStatus) string {
8787
red := color.New(color.FgRed)
8888
yellow := color.New(color.FgYellow)
8989
if dep.GetVersionInstalled() == "" {
90-
res += fmt.Sprintf(tr("%s must be installed.")+"\n",
90+
res += tr("%s must be installed.",
9191
red.Sprintf("✕ %s %s", dep.GetName(), dep.GetVersionRequired()))
9292
} else if dep.GetVersionInstalled() == dep.GetVersionRequired() {
93-
res += fmt.Sprintf(tr("%s is already installed.")+"\n",
93+
res += tr("%s is already installed.",
9494
green.Sprintf("✓ %s %s", dep.GetName(), dep.GetVersionRequired()))
9595
} else {
96-
res += fmt.Sprintf(tr("%s is required but %s is currently installed.")+"\n",
96+
res += tr("%[1]s is required but %[2]s is currently installed.",
9797
yellow.Sprintf("✕ %s %s", dep.GetName(), dep.GetVersionRequired()),
9898
yellow.Sprintf("%s", dep.GetVersionInstalled()))
9999
}
100+
res += "\n"
100101
return res
101102
}

‎cli/lib/examples.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (ir libraryExamplesResult) String() string {
115115
} else if lib.Library.Location != rpc.LibraryLocation_LIBRARY_LOCATION_USER {
116116
name += " (" + lib.Library.GetLocation().String() + ")"
117117
}
118-
r := fmt.Sprintf(tr("Examples for library %s")+"\n", color.GreenString("%s", name))
118+
r := tr("Examples for library %s", color.GreenString("%s", name)) + "\n"
119119
sort.Slice(lib.Examples, func(i, j int) bool {
120120
return strings.ToLower(lib.Examples[i]) < strings.ToLower(lib.Examples[j])
121121
})

‎cli/lib/search.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (res result) String() string {
139139

140140
for _, lib := range results {
141141
if res.results.GetStatus() == rpc.LibrarySearchStatus_LIBRARY_SEARCH_STATUS_SUCCESS {
142-
out.WriteString(fmt.Sprintf(tr(`Name: "%s"`)+"\n", lib.Name))
142+
out.WriteString(tr(`Name: "%s"`, lib.Name) + "\n")
143143
if res.namesOnly {
144144
continue
145145
}

‎cli/output/rpc_progress.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func NewDownloadProgressBarCB() func(*rpc.DownloadProgress) {
6161
// fmt.Printf(">>> %v\n", curr)
6262
if filename := curr.GetFile(); filename != "" {
6363
if curr.GetCompleted() {
64-
fmt.Printf(tr("%s already downloaded")+"\n", filename)
64+
fmt.Println(tr("%s already downloaded", filename))
6565
return
6666
}
6767
prefix = filename
@@ -73,7 +73,7 @@ func NewDownloadProgressBarCB() func(*rpc.DownloadProgress) {
7373
bar.Set(int(curr.GetDownloaded()))
7474
}
7575
if curr.GetCompleted() {
76-
bar.FinishPrintOver(fmt.Sprintf(tr("%s downloaded"), prefix))
76+
bar.FinishPrintOver(tr("%s downloaded", prefix))
7777
}
7878
}
7979
}

‎cli/sketch/archive.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func initArchiveCommand() *cobra.Command {
4848
Run: runArchiveCommand,
4949
}
5050

51-
command.Flags().BoolVar(&includeBuildDir, "include-build-dir", false, fmt.Sprintf(tr("Includes %s directory in the archive."), "build"))
51+
command.Flags().BoolVar(&includeBuildDir, "include-build-dir", false, tr("Includes %s directory in the archive.", "build"))
5252

5353
return command
5454
}

‎cli/sketch/new.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ func runNewCommand(cmd *cobra.Command, args []string) {
6565
os.Exit(errorcodes.ErrGeneric)
6666
}
6767

68-
feedback.Printf(tr("Sketch created in: %s"), sketchDir)
68+
feedback.Print(tr("Sketch created in: %s", sketchDir))
6969
}

‎cli/upload/upload.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package upload
1717

1818
import (
1919
"context"
20-
"fmt"
2120
"os"
2221

2322
"github.com/arduino/arduino-cli/arduino/sketch"
@@ -69,7 +68,7 @@ func NewCommand() *cobra.Command {
6968

7069
func checkFlagsConflicts(command *cobra.Command, args []string) {
7170
if importFile != "" && importDir != "" {
72-
feedback.Errorf(fmt.Sprintf(tr("error: %s and %s flags cannot be used together"), "--input-file", "--input-dir"))
71+
feedback.Errorf(tr("error: %[1]s and %[2]s flags cannot be used together", "--input-file", "--input-dir"))
7372
os.Exit(errorcodes.ErrBadArgument)
7473
}
7574
}
@@ -114,7 +113,7 @@ func run(command *cobra.Command, args []string) {
114113

115114
fields := map[string]string{}
116115
if len(userFieldRes.UserFields) > 0 {
117-
feedback.Printf(tr("Uploading to specified board using %s protocol requires the following info:"), discoveryPort.Protocol)
116+
feedback.Print(tr("Uploading to specified board using %s protocol requires the following info:", discoveryPort.Protocol))
118117
fields = arguments.AskForUserFields(userFieldRes.UserFields)
119118
}
120119

‎commands/board/attach.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func Attach(ctx context.Context, req *rpc.BoardAttachRequest, taskCB commands.Ta
9090
if board == nil {
9191
return nil, &commands.InvalidArgumentError{Message: tr("No supported board found at %s", deviceURI)}
9292
}
93-
taskCB(&rpc.TaskProgress{Name: fmt.Sprintf(tr("Board found: %s"), board.Name())})
93+
taskCB(&rpc.TaskProgress{Name: tr("Board found: %s", board.Name())})
9494

9595
// TODO: should be stoped the monitor: when running as a pure CLI is released
9696
// by the OS, when run as daemon the resource's state is unknown and could be leaked.
@@ -105,7 +105,7 @@ func Attach(ctx context.Context, req *rpc.BoardAttachRequest, taskCB commands.Ta
105105
if err != nil {
106106
return nil, &commands.PermissionDeniedError{Message: tr("Cannot export sketch metadata"), Cause: err}
107107
}
108-
taskCB(&rpc.TaskProgress{Name: fmt.Sprintf(tr("Selected fqbn: %s"), sk.Metadata.CPU.Fqbn), Completed: true})
108+
taskCB(&rpc.TaskProgress{Name: tr("Selected fqbn: %s", sk.Metadata.CPU.Fqbn), Completed: true})
109109
return &rpc.BoardAttachResponse{}, nil
110110
}
111111

‎commands/board/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func Watch(instanceID int32, interrupt <-chan bool) (<-chan *rpc.BoardListWatchR
274274
if err != nil {
275275
outChan <- &rpc.BoardListWatchResponse{
276276
EventType: "error",
277-
Error: fmt.Sprintf(tr("stopping discoveries: %s"), err),
277+
Error: tr("stopping discoveries: %s", err),
278278
}
279279
// Don't close the channel if quitting all discoveries
280280
// failed, otherwise some processes might be left running.

‎commands/bundled_tools.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
package commands
1717

1818
import (
19-
"fmt"
20-
2119
"github.com/arduino/arduino-cli/arduino/cores"
2220
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
2321
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
@@ -42,19 +40,19 @@ func InstallToolRelease(pm *packagemanager.PackageManager, toolRelease *cores.To
4240

4341
if toolRelease.IsInstalled() {
4442
log.Warn("Tool already installed")
45-
taskCB(&rpc.TaskProgress{Name: fmt.Sprintf(tr("Tool %s already installed"), toolRelease), Completed: true})
43+
taskCB(&rpc.TaskProgress{Name: tr("Tool %s already installed", toolRelease), Completed: true})
4644
return nil
4745
}
4846

4947
log.Info("Installing tool")
50-
taskCB(&rpc.TaskProgress{Name: fmt.Sprintf(tr("Installing %s"), toolRelease)})
48+
taskCB(&rpc.TaskProgress{Name: tr("Installing %s", toolRelease)})
5149
err := pm.InstallTool(toolRelease)
5250
if err != nil {
5351
log.WithError(err).Warn("Cannot install tool")
5452
return &FailedInstallError{Message: tr("Cannot install tool %s", toolRelease), Cause: err}
5553
}
5654
log.Info("Tool installed")
57-
taskCB(&rpc.TaskProgress{Message: fmt.Sprintf(tr("%s installed"), toolRelease), Completed: true})
55+
taskCB(&rpc.TaskProgress{Message: tr("%s installed", toolRelease), Completed: true})
5856

5957
return nil
6058
}

0 commit comments

Comments
 (0)
Please sign in to comment.