@@ -10,7 +10,7 @@ import (
1010
1111 "github.com/AlecAivazis/survey/v2"
1212 "github.com/mitchellh/go-homedir"
13- "github.com/urfave/cli"
13+ "github.com/urfave/cli/v2 "
1414
1515 "github.com/pluralsh/plural/pkg/crypto"
1616 "github.com/pluralsh/plural/pkg/scm"
@@ -54,8 +54,8 @@ const Gitignore = `/**/.terraform
5454// IMPORTANT
5555// Repo cryptography relies on git smudge and clean filters, which pipe a file into stdin and respond with a new version
5656// of the file from stdout. If we write anything besides the crypto text, it will no longer be decryptable naturally.
57- func (p * Plural ) cryptoCommands () []cli.Command {
58- return []cli.Command {
57+ func (p * Plural ) cryptoCommands () []* cli.Command {
58+ return []* cli.Command {
5959 {
6060 Name : "encrypt" ,
6161 Usage : "encrypts stdin and writes to stdout" ,
@@ -91,7 +91,7 @@ func (p *Plural) cryptoCommands() []cli.Command {
9191 Usage : "generates a random string" ,
9292 Action : randString ,
9393 Flags : []cli.Flag {
94- cli.IntFlag {
94+ & cli.IntFlag {
9595 Name : "len" ,
9696 Usage : "the length of the string to generate" ,
9797 Value : 32 ,
@@ -113,7 +113,7 @@ func (p *Plural) cryptoCommands() []cli.Command {
113113 Usage : "allows a list of plural users to decrypt this repository" ,
114114 ArgsUsage : "" ,
115115 Flags : []cli.Flag {
116- cli.StringSliceFlag {
116+ & cli.StringSliceFlag {
117117 Name : "email" ,
118118 Usage : "a email to share with (multiple allowed)" ,
119119 Required : true ,
@@ -125,7 +125,7 @@ func (p *Plural) cryptoCommands() []cli.Command {
125125 Name : "setup-keys" ,
126126 Usage : "creates an age keypair, and uploads the public key to plural for use in plural crypto share" ,
127127 Flags : []cli.Flag {
128- cli.StringFlag {
128+ & cli.StringFlag {
129129 Name : "name" ,
130130 Usage : "a name for the key" ,
131131 Required : true ,
0 commit comments