Skip to content

Commit

Permalink
Merge pull request #55 from karl-cardenas-coding/upgrade-go
Browse files Browse the repository at this point in the history
perf:Upgraded to Go 1.15, reduces binary size
  • Loading branch information
karl-cardenas-coding committed Aug 24, 2020
2 parents d1dc1d6 + 289700d commit 1590554
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/version.go
Expand Up @@ -2,7 +2,6 @@ package cmd

import (
"fmt"
"os"

"github.com/spf13/cobra"
)
Expand All @@ -17,6 +16,6 @@ var versionCmd = &cobra.Command{
Long: `Prints the current version number of disaster-cli`,
Run: func(cmd *cobra.Command, args []string) {
version := fmt.Sprintf("disaster %s", VersionString)
os.Stdout.Write([]byte(version))
fmt.Println(version)
},
}
3 changes: 2 additions & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/karl-cardenas-coding/disaster-cli

go 1.14
go 1.15

require (
github.com/dustin/go-humanize v1.0.0
Expand All @@ -9,4 +9,5 @@ require (
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/sirupsen/logrus v1.6.0
github.com/spf13/cobra v1.0.0
golang.org/x/sys v0.0.0-20200821140526-fda516888d29 // indirect
)
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -168,6 +168,8 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200821140526-fda516888d29 h1:mNuhGagCf3lDDm5C0376C/sxh6V7fy9WbdEu/YDNA04=
golang.org/x/sys v0.0.0-20200821140526-fda516888d29/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
Expand Down
Binary file added library/disaster
Binary file not shown.

0 comments on commit 1590554

Please sign in to comment.