未验证 提交 d38c6181 编写于 作者: A Avi Aryan

add version info in abc help #57

上级 737c758f
...@@ -203,20 +203,20 @@ If you are curious, we use the tag '!oss' to make our private builds. ...@@ -203,20 +203,20 @@ If you are curious, we use the tag '!oss' to make our private builds.
#### How to know build variant from the executable? #### How to know build variant from the executable?
If you are not sure which build of `abc` you are using, you can run `abc --help` and take note of the value under the version header. If you are not sure which build of `abc` you are using, you can run `abc --help` and take note of the value under the VERSION header.
For open source build, you will see For open source build, you will see
``` ```
VARIANT VERSION
oss ... (oss)
``` ```
For the proprietary builds, you will see For the proprietary builds, you will see
``` ```
VARIANT VERSION
!oss ... (!oss)
``` ```
......
...@@ -16,7 +16,7 @@ const ( ...@@ -16,7 +16,7 @@ const (
defaultPipelineFile = "pipeline.js" defaultPipelineFile = "pipeline.js"
) )
var version = "0.0.0" var version = "0.1.0"
var variant = imports.BuildName var variant = imports.BuildName
func usage() { func usage() {
...@@ -25,9 +25,8 @@ func usage() { ...@@ -25,9 +25,8 @@ func usage() {
usageAppbase() usageAppbase()
// variant // variant
fmt.Fprintf(os.Stderr, "\n") fmt.Fprintf(os.Stderr, "\n")
fmt.Fprintf(os.Stderr, "VARIANT\n") fmt.Fprintf(os.Stderr, "VERSION\n")
fmt.Fprintf(os.Stderr, " %s\n", variant) fmt.Fprintf(os.Stderr, " %s (%s)\n", version, variant)
fmt.Fprintf(os.Stderr, "\n")
} }
func main() { func main() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册