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
Kevin Lyda
cashier
Commits
b800292d
Commit
b800292d
authored
Jan 25, 2017
by
Kevin Lyda
💬
Browse files
No underscores lint says.
parent
de3927de
Pipeline
#1177
passed with stage
in 1 minute and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cmd/cashier/main.go
View file @
b800292d
...
...
@@ -19,14 +19,14 @@ import (
)
var
(
u
,
_
=
user
.
Current
()
cfg
=
pflag
.
String
(
"config"
,
path
.
Join
(
u
.
HomeDir
,
".cashier.conf"
),
"Path to config file"
)
ca
=
pflag
.
String
(
"ca"
,
"http://localhost:10000"
,
"CA server"
)
keysize
=
pflag
.
Int
(
"key_size"
,
2048
,
"Key size. Ignored for ed25519 keys"
)
validity
=
pflag
.
Duration
(
"validity"
,
time
.
Hour
*
24
,
"Key validity"
)
keytype
=
pflag
.
String
(
"key_type"
,
"rsa"
,
"Type of private key to generate - rsa, ecdsa or ed25519"
)
public
_k
ey
=
pflag
.
String
(
"public_key"
,
""
,
"Filename for public key (optional, no default)"
)
public
_c
ert
=
pflag
.
String
(
"public_cert"
,
""
,
"Filename for public cert (optional, no default)"
)
u
,
_
=
user
.
Current
()
cfg
=
pflag
.
String
(
"config"
,
path
.
Join
(
u
.
HomeDir
,
".cashier.conf"
),
"Path to config file"
)
ca
=
pflag
.
String
(
"ca"
,
"http://localhost:10000"
,
"CA server"
)
keysize
=
pflag
.
Int
(
"key_size"
,
2048
,
"Key size. Ignored for ed25519 keys"
)
validity
=
pflag
.
Duration
(
"validity"
,
time
.
Hour
*
24
,
"Key validity"
)
keytype
=
pflag
.
String
(
"key_type"
,
"rsa"
,
"Type of private key to generate - rsa, ecdsa or ed25519"
)
public
K
ey
=
pflag
.
String
(
"public_key"
,
""
,
"Filename for public key (optional, no default)"
)
public
C
ert
=
pflag
.
String
(
"public_cert"
,
""
,
"Filename for public cert (optional, no default)"
)
)
func
main
()
{
...
...
Write
Preview
Markdown
is supported
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