Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
4a902c2f16
|
|||
b327d998c9
|
|||
d81fbc64ef
|
@ -12,12 +12,6 @@ builds:
|
||||
- windows
|
||||
- darwin
|
||||
archives:
|
||||
- replacements:
|
||||
darwin: Darwin
|
||||
linux: Linux
|
||||
windows: Windows
|
||||
386: i386
|
||||
amd64: x86_64
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
snapshot:
|
||||
|
9
main.go
9
main.go
@ -18,9 +18,14 @@ func main() {
|
||||
if len(os.Args) < 2 {
|
||||
fmt.Println("provide a command")
|
||||
os.Exit(1)
|
||||
} else if os.Args[1] == "upgrade" {
|
||||
} else if os.Args[1] == "upgrade" || os.Args[1] == "up" {
|
||||
fmt.Print("Trying Upgrade... ")
|
||||
update(gitTag)
|
||||
err := update(gitTag)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
} else {
|
||||
fmt.Println("Success")
|
||||
}
|
||||
} else if os.Args[1] == "version" {
|
||||
fmt.Print("Version ")
|
||||
fmt.Println(gitTag)
|
||||
|
Reference in New Issue
Block a user