Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
9e10ae11
Commit
9e10ae11
authored
Jul 03, 2019
by
Sietse Ringers
Browse files
feat: link to documentation in irma cli
parent
c8fd650e
Pipeline
#26426
passed with stages
in 6 minutes and 27 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
irma/cmd/root.go
View file @
9e10ae11
...
...
@@ -13,11 +13,9 @@ import (
var
RootCmd
=
&
cobra
.
Command
{
Use
:
"irma"
,
Short
:
"IRMA toolkit"
,
Long
:
`
IRMA toolkit
`
,
Long
:
"
IRMA toolkit
\n
Documentation: 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
)
...
...
@@ -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
)
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment