Skip to content

Commit

Permalink
Adding version from version.go
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Monica <[email protected]>
  • Loading branch information
diogomonica committed Jul 28, 2015
1 parent 4cf84b3 commit c4e4518
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 57 deletions.
3 changes: 2 additions & 1 deletion cmd/notary/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/spf13/viper"

"github.com/docker/notary/pkg/passphrase"
"github.com/docker/notary/version"
)

const configFileName string = "config"
Expand Down Expand Up @@ -80,7 +81,7 @@ func main() {
Short: "Print the version number of notary",
Long: `print the version number of notary`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("notary v0.1.0-rc1")
fmt.Printf("notary\n Version: %s\n Git commit: %s\n", version.NotaryVersion, version.GitCommit)
},
}

Expand Down
26 changes: 0 additions & 26 deletions version/print.go

This file was deleted.

12 changes: 4 additions & 8 deletions version/version.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package version

// Package is the overall, canonical project import path under which the
// package was built.
var Package = "github.com/docker/notary"
// Version indicates which version of the binary is running.
var NotaryVersion = "v0.1.0-rc1"

// Version indicates which version of the binary is running. This is set to
// the latest release tag by hand, always suffixed by "+unknown". During
// build, it will be replaced by the actual version. The value here will be
// used if the registry is run after a go get based install.
var Version = "v0.0.1-alpha.1+unknown"
// GitCommit indicates which git hash the binary was built off of
var GitCommit string
22 changes: 0 additions & 22 deletions version/version.sh

This file was deleted.

0 comments on commit c4e4518

Please sign in to comment.