Skip to content

Commit

Permalink
Properly specify aliases on the default show action
Browse files Browse the repository at this point in the history
Fixes gopasspw#1318

Signed-off-by: Dominik Schulz <[email protected]>
  • Loading branch information
dominikschulz committed May 3, 2020
1 parent be8e8d6 commit 87a4ffc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 6 additions & 4 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ func setupApp(ctx context.Context, sv semver.Version) (context.Context, *cli.App
Usage: "Assume yes on all yes/no questions or use the default on all others",
},
&cli.BoolFlag{
Name: "clip, c",
Usage: "Copy the first line of the secret into the clipboard",
Name: "clip",
Aliases: []string{"c"},
Usage: "Copy the first line of the secret into the clipboard",
},
&cli.BoolFlag{
Name: "alsoclip, C",
Usage: "Copy the first line of the secret into the clipboard and show everything",
Name: "alsoclip",
Aliases: []string{"C"},
Usage: "Copy the first line of the secret into the clipboard and show everything",
},
}

Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ require (
github.com/godbus/dbus v0.0.0-20190623212516-8a1682060722
github.com/gokyle/twofactor v1.0.1
github.com/golang/protobuf v1.4.0
github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf // indirect
github.com/hashicorp/go-multierror v1.1.0
github.com/hashicorp/golang-lru v0.5.4
github.com/jsimonetti/pwscheme v0.0.0-20160922125227-76804708ecad
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf h1:vc7Dmrk4JwS0ZPS6WZvWlwDflgDTA26jItmbSj83nug=
github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU=
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-multierror v1.1.0 h1:B9UzwGQJehnUY1yNrnwREHc3fGbC2xefo8g4TbElacI=
Expand Down

0 comments on commit 87a4ffc

Please sign in to comment.