Skip to content

Commit

Permalink
Preparing 0.1.0-rc1 tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
xllora committed Jan 28, 2016
1 parent bde8295 commit 2a913b6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
28 changes: 28 additions & 0 deletions bql/version/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2016 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package version

var (
// Major is the current major version of master branch..
Major = 0
// Minor is the current minor version of master branch.
Minor = 1
// Patch is the curernt patched version of the master branch.
Patch = 0
// Release is the current release level of the master branch. Valid values
// are dev (developement unreleased), rcX (release candidate with current
// iteration), stable (indicates a final released version).
Release = "rc1"
)
4 changes: 3 additions & 1 deletion tools/vcli/bw/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ package main
import (
"fmt"
"os"

"github.com/google/badwolf/bql/version"
)

var stage = "alpha"
Expand All @@ -28,7 +30,7 @@ var patch = "dev"
func NewVersionCommand() *Command {
return &Command{
Run: func(args []string) int {
fmt.Fprintf(os.Stderr, "badwolf vCli (%s-%d.%d.%s)\n", stage, major, minor, patch)
fmt.Fprintf(os.Stderr, "badwolf vCli (%d.%d.%d-%s)\n", version.Major, version.Minor, version.Patch, version.Release)
return 0
},
UsageLine: "version",
Expand Down

0 comments on commit 2a913b6

Please sign in to comment.