From 71f67c359f2e597f6230e269fefedda82f67ea93 Mon Sep 17 00:00:00 2001 From: graduateDesign Date: Thu, 30 Sep 2021 17:35:59 +0800 Subject: [PATCH] update manager --- pikascript-packageManager-go/main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pikascript-packageManager-go/main.go b/pikascript-packageManager-go/main.go index 7a3b10ab9..98e4ebd4f 100644 --- a/pikascript-packageManager-go/main.go +++ b/pikascript-packageManager-go/main.go @@ -3,6 +3,7 @@ package main import ( "fmt" "os" + "time" "github.com/go-git/go-git/v5" ) @@ -42,9 +43,15 @@ func main() { /* pull the pikascript repo */ r, _ := git.PlainOpen(path) w, _ := r.Worktree() - fmt.Println("updateing pikascript...") + fmt.Println("updating pikascript...") w.Pull(&git.PullOptions{RemoteName: "origin"}) ref, _ := r.Head() commit, _ := r.CommitObject(ref.Hash()) fmt.Println(commit) + + fmt.Println("update OK !") + for i := 3; i > 0; i-- { + time.Sleep(1 * time.Second) + fmt.Println("this window will auto close after", i, "s...") + } }