Add version information
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"asink"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
@ -37,6 +38,11 @@ var commands []Command = []Command{
|
||||
fn: UserMod,
|
||||
explanation: "Modify a user",
|
||||
},
|
||||
Command{
|
||||
cmd: "version",
|
||||
fn: PrintVersion,
|
||||
explanation: "Display the current version",
|
||||
},
|
||||
}
|
||||
|
||||
func main() {
|
||||
@ -56,3 +62,7 @@ func main() {
|
||||
fmt.Printf("\t%s\t\t%s\n", c.cmd, c.explanation)
|
||||
}
|
||||
}
|
||||
|
||||
func PrintVersion(args []string) {
|
||||
fmt.Println("Asink server version " + asink.VERSION_STRING + ", using version " + asink.API_VERSION_STRING + " of the Asink API.")
|
||||
}
|
||||
|
Reference in New Issue
Block a user