removing set volume location

display version number
add default replication type
This commit is contained in:
Chris Lu
2012-09-24 02:01:53 -07:00
parent df74f538f7
commit e340fbee82
7 changed files with 42 additions and 86 deletions

View File

@@ -5,6 +5,10 @@ import (
"runtime"
)
const (
VERSION = "0.18"
)
var cmdVersion = &Command{
Run: runVersion,
UsageLine: "version",
@@ -12,11 +16,11 @@ var cmdVersion = &Command{
Long: `Version prints the Weed File System version`,
}
func runVersion(cmd *Command, args []string) bool{
func runVersion(cmd *Command, args []string) bool {
if len(args) != 0 {
cmd.Usage()
}
fmt.Printf("version 0.18 %s %s\n",runtime.GOOS, runtime.GOARCH)
fmt.Printf("version %s %s %s\n", VERSION, runtime.GOOS, runtime.GOARCH)
return true
}