You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
447 B

  1. package main
  2. import (
  3. "code.google.com/p/weed-fs/go/util"
  4. "fmt"
  5. "runtime"
  6. )
  7. var cmdVersion = &Command{
  8. Run: runVersion,
  9. UsageLine: "version",
  10. Short: "print Weed File System version",
  11. Long: `Version prints the Weed File System version`,
  12. }
  13. func runVersion(cmd *Command, args []string) bool {
  14. if len(args) != 0 {
  15. cmd.Usage()
  16. }
  17. fmt.Printf("version %s %s %s\n", util.VERSION, runtime.GOOS, runtime.GOARCH)
  18. return true
  19. }