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

feat: small improvements to irma tool output

- emit version number when running `irma` without subcommand
- `irma session` example uses default `irma server` port
parent 808a5303
......@@ -13,7 +13,7 @@ import (
var RootCmd = &cobra.Command{
Use: "irma",
Short: "IRMA toolkit",
Long: "IRMA toolkit\nDocumentation:",
Long: "IRMA toolkit v" + irma.Version + "\nDocumentation:",
func Execute() {
......@@ -41,7 +41,7 @@ with --message flags, or it can be specified as JSON to the --request flag.`,
irma session --sign irma-demo.MijnOverheid.root.BSN --message message
irma session --issue irma-demo.MijnOverheid.ageLower=yes,yes,yes,no --disclose irma-demo.MijnOverheid.root.BSN
irma session --request '{"type":"disclosing","content":[{"label":"BSN","attributes":["irma-demo.MijnOverheid.root.BSN"]}]}'
irma session --server http://localhost:48680 --authmethod token --key mytoken --disclose irma-demo.MijnOverheid.root.BSN`,
irma session --server http://localhost:8088 --authmethod token --key mytoken --disclose irma-demo.MijnOverheid.root.BSN`,
Run: func(cmd *cobra.Command, args []string) {
request, irmaconfig, err := configure(cmd)
if err != nil {
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