Commit 9ee7a391 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Add irma version subcommand

parent d8961cb2
......@@ -3,6 +3,7 @@ package cmd
import (
"fmt"
"os"
"runtime"
"github.com/spf13/cobra"
)
......@@ -23,6 +24,18 @@ func Execute() {
}
}
func init() {
RootCmd.AddCommand(&cobra.Command{
Use: "version",
Short: "Print irma version information",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("irma")
fmt.Println("Version: ", "0.1.0")
fmt.Println("OS/Arg: ", runtime.GOOS+"/"+runtime.GOARCH)
},
})
}
func die(message string, err error) {
var m string
if message != "" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment