style: cmd.new add success tip

This commit is contained in:
loveuer 2024-07-12 16:33:35 +08:00
parent 0f139cda98
commit b267cc7a2e
3 changed files with 8 additions and 2 deletions

View File

@ -126,6 +126,8 @@ func initNew() {
log.Warn("remove .git folder err: %s", err.Error())
}
log.Info("🎉 create project [%s] 成功!!!", args[0])
return nil
}
}

View File

@ -6,6 +6,7 @@ import (
"github.com/loveuer/nf/nft/nfctl/version"
"os/signal"
"syscall"
"time"
)
func main() {
@ -16,4 +17,7 @@ func main() {
defer version.Fn()
_ = cmd.Root.ExecuteContext(ctx)
// 延迟以便 check 检查
time.Sleep(1500 * time.Millisecond)
}

View File

@ -11,7 +11,7 @@ import (
"sync"
)
const Version = "v24.07.12-r1"
const Version = "v24.07.12-r2"
var (
lk = &sync.Mutex{}
@ -19,7 +19,7 @@ var (
upgrade = func(v string) func() {
return func() {
color.Green("\n🎉 🎉 🎉 [nfctl] New Version Found: %s", v)
color.Cyan("Upgrade it with: [go install github.com/loveuer/nf/nft/nfctl@latest]")
color.Cyan("Upgrade it with: [go install github.com/loveuer/nf/nft/nfctl@master]")
fmt.Print("Or Download by: ")
color.Cyan(termlink.Link("Releases", "https://github.com/loveuer/nf/releases"))
fmt.Println()