seaweedfs/weed-fs/src/cmd/weed/version.go

23 lines
396 B
Go
Raw Normal View History

package main
import (
"fmt"
"runtime"
)
var cmdVersion = &Command{
Run: runVersion,
UsageLine: "version",
Short: "print Weed File System version",
Long: `Version prints the Weed File System version`,
}
func runVersion(cmd *Command, args []string) bool{
if len(args) != 0 {
cmd.Usage()
}
2012-09-04 03:41:48 +00:00
fmt.Printf("version 0.18 %s %s\n",runtime.GOOS, runtime.GOARCH)
return true
}