Skip to content

Commit 029d429

Browse files
committed
docs: update print content
1 parent 692138f commit 029d429

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

cmd/sponge/commands/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func OpenUICommand() *cobra.Command {
4343
return err
4444
}
4545
}
46-
fmt.Printf("The code generation engine service is already running, version = %s, access the url %s in your browser.\n",
46+
fmt.Printf("Code generation engine service running %s. Access %s in your browser.\n",
4747
getVersion(), color.HiCyanString(spongeAddr))
4848
go func() {
4949
_ = open(spongeAddr)

cmd/sponge/commands/upgrade.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ func UpgradeCommand() *cobra.Command {
4949
}
5050

5151
func runUpgrade(targetVersion string) (string, error) {
52-
runningTip := "upgrading sponge binary "
53-
finishTip := "upgrade sponge binary done " + installedSymbol
54-
failTip := "upgrade sponge binary failed " + lackSymbol
52+
runningTip := "sponge binary upgrading "
53+
finishTip := "sponge binary upgraded " + installedSymbol
54+
failTip := "sponge binary upgrade failed " + lackSymbol
5555
p := utils.NewWaitPrinter(time.Millisecond * 500)
5656
p.LoopPrint(runningTip)
5757
err := runUpgradeCommand(targetVersion)
@@ -61,9 +61,9 @@ func runUpgrade(targetVersion string) (string, error) {
6161
}
6262
p.StopPrint(finishTip)
6363

64-
runningTip = "upgrading template code "
65-
finishTip = "upgrade template code done " + installedSymbol
66-
failTip = "upgrade template code failed " + lackSymbol
64+
runningTip = "template code upgrading "
65+
finishTip = "template code upgraded " + installedSymbol
66+
failTip = "template code upgrade failed " + lackSymbol
6767
p = utils.NewWaitPrinter(time.Millisecond * 500)
6868
p.LoopPrint(runningTip)
6969
ver, err := copyToTempDir(targetVersion)
@@ -73,9 +73,9 @@ func runUpgrade(targetVersion string) (string, error) {
7373
}
7474
p.StopPrint(finishTip)
7575

76-
runningTip = "upgrading the built-in plugins of sponge "
77-
finishTip = "upgrade the built-in plugins of sponge done " + installedSymbol
78-
failTip = "upgrade the built-in plugins of sponge failed " + lackSymbol
76+
runningTip = "built-in plugins upgrading "
77+
finishTip = "built-in plugins upgraded " + installedSymbol
78+
failTip = "built-in plugins upgrade failed " + lackSymbol
7979
p = utils.NewWaitPrinter(time.Millisecond * 500)
8080
p.LoopPrint(runningTip)
8181
err = updateSpongeInternalPlugin(ver)

0 commit comments

Comments
 (0)