Skip to content

Commit

Permalink
feat: link to documentation in irma cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sietseringers committed Jul 3, 2019
1 parent c8fd650 commit 9e10ae1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions irma/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ import (
var RootCmd = &cobra.Command{
Use: "irma",
Short: "IRMA toolkit",
Long: `IRMA toolkit`,
Long: "IRMA toolkit\nDocumentation: https://irma.app/docs",
}

// Execute adds all child commands to the root command sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
if err := RootCmd.Execute(); err != nil {
os.Exit(-1)
Expand All @@ -29,7 +27,8 @@ func init() {
Use: "version",
Short: "Print irma version information",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("irma")
fmt.Println(RootCmd.Long)
fmt.Println()
fmt.Println("Version: ", irma.Version)
fmt.Println("OS/Arg: ", runtime.GOOS+"/"+runtime.GOARCH)
},
Expand Down

0 comments on commit 9e10ae1

Please sign in to comment.