Skip to content

Commit 64cffd5

Browse files
author
Matthew Fisher
committed
ref(deisctl): use package version
1 parent 4667371 commit 64cffd5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

deisctl/deisctl.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@ import (
1111
"github.com/deis/deis/deisctl/backend/fleet"
1212
"github.com/deis/deis/deisctl/client"
1313
"github.com/deis/deis/deisctl/utils"
14+
"github.com/deis/deis/version"
1415

1516
docopt "github.com/docopt/docopt-go"
1617
)
1718

18-
const (
19-
// Version of deisctl client
20-
Version string = "1.2.0-dev"
21-
)
22-
2319
// main exits with the return value of Command(os.Args[1:]), deferring all logic to
2420
// a func we can test.
2521
func main() {
@@ -62,7 +58,7 @@ Options:
6258
// pre-parse command-line arguments
6359
argv, helpFlag := parseArgs(argv)
6460
// give docopt an optional final false arg so it doesn't call os.Exit()
65-
args, err := docopt.Parse(usage, argv, false, Version, true, false)
61+
args, err := docopt.Parse(usage, argv, false, version.Version, true, false)
6662
if err != nil || len(args) == 0 {
6763
if helpFlag {
6864
fmt.Print(usage)

0 commit comments

Comments
 (0)