github.com/cvmfs/docker-graphdriver@v0.0.0-20181206110523-155ec6df0521/plugins/aufs_cvmfs/version.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "os" 6 ) 7 8 var ( 9 version = "<unofficial build>" 10 git_hash = "<unofficial build>" 11 help_msg = "This program is part of the CernVM File System\n" + 12 "It serves the Docker graphdriver plugins HTTP API on port 80.\n" + 13 "The plugin binary is meant to be started in a dedicated Docker plugin container.\n\n" + 14 "Refer to https://github.com/cvmfs/docker-graphdriver for further details." 15 ) 16 17 func print_info() bool { 18 if len(os.Args) < 2 { 19 return false 20 } 21 22 switch arg := os.Args[1]; arg { 23 case "-v": 24 fmt.Println("Version: ", version) 25 fmt.Println("Commit: ", git_hash) 26 return true 27 case "-h": 28 fmt.Println(help_msg) 29 return true 30 } 31 return false 32 }