forked from toolshed/abra
refactor: moved a lot of flags & added comments
Comments added to fix the golint errors on exported things need comments
This commit is contained in:
@ -9,11 +9,19 @@ import (
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
var allSecrets bool
|
||||
var allSecretsFlag = &cli.BoolFlag{
|
||||
Name: "all",
|
||||
Value: false,
|
||||
Destination: &allSecrets,
|
||||
Usage: "Generate all secrets",
|
||||
}
|
||||
|
||||
// TODO: Replicating what the bash abra does might be hard
|
||||
// with the mix of subcommands and flags
|
||||
var appSecretCommand = &cli.Command{
|
||||
Name: "secret",
|
||||
Flags: []cli.Flag{internal.AllFlag, internal.PassFlag},
|
||||
Flags: []cli.Flag{allSecretsFlag, internal.PassFlag},
|
||||
Action: func(c *cli.Context) error {
|
||||
password, err := secret.GeneratePassphrases(1)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user