-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.go
46 lines (42 loc) · 861 Bytes
/
app.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package main
import "github.com/urfave/cli/v2"
var appCopyFlag = &cli.BoolFlag{
Name: "clipboard",
Value: false,
Aliases: []string{"clip", "copy", "c"},
Usage: "Copy content to clipboard",
}
var appPasswordFlags = []cli.Flag{
&cli.IntFlag{
Name: "length",
Value: 32,
Aliases: []string{"l"},
Usage: "Password length",
},
&cli.BoolFlag{
Name: "symbols",
Value: true,
Aliases: []string{"s"},
Usage: "Add symbols to password",
},
}
var appSSHKeygenFlags = []cli.Flag{
&cli.StringFlag{
Name: "type",
Value: "ed25519",
Aliases: []string{"t"},
Usage: "Ssh key type",
},
&cli.StringFlag{
Name: "comment",
Value: "",
Aliases: []string{"C"},
Usage: "Ssh key comment",
},
&cli.IntFlag{
Name: "bits",
Value: 4096,
Aliases: []string{"bit", "b"},
Usage: "Ssh key bits",
},
}