From 2a913b6ceed6526185b7c338071a928da6aac845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Llor=C3=A0?= Date: Thu, 28 Jan 2016 10:13:16 -0800 Subject: [PATCH] Preparing 0.1.0-rc1 tagging --- bql/version/version.go | 28 ++++++++++++++++++++++++++++ tools/vcli/bw/version.go | 4 +++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 bql/version/version.go diff --git a/bql/version/version.go b/bql/version/version.go new file mode 100644 index 00000000..0852ced9 --- /dev/null +++ b/bql/version/version.go @@ -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" +) diff --git a/tools/vcli/bw/version.go b/tools/vcli/bw/version.go index 6f1f3545..b10d1ad7 100644 --- a/tools/vcli/bw/version.go +++ b/tools/vcli/bw/version.go @@ -17,6 +17,8 @@ package main import ( "fmt" "os" + + "github.com/google/badwolf/bql/version" ) var stage = "alpha" @@ -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",