Skip to content

Commit

Permalink
init plural client in crypto commands (#220)
Browse files Browse the repository at this point in the history
Signed-off-by: DavidSpek <[email protected]>

Signed-off-by: DavidSpek <[email protected]>
  • Loading branch information
davidspek authored Sep 15, 2022
1 parent 75cd2db commit a0b51e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/plural/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ func cryptoInit(c *cli.Context) error {
}

func (p *Plural) handleCryptoShare(c *cli.Context) error {
p.InitPluralClient()
emails := c.StringSlice("email")
if err := crypto.SetupAge(p.Client, emails); err != nil {
return err
Expand All @@ -276,6 +277,7 @@ func (p *Plural) handleCryptoShare(c *cli.Context) error {
}

func (p *Plural) handleSetupKeys(c *cli.Context) error {
p.InitPluralClient()
name := c.String("name")
if err := crypto.SetupIdentity(p.Client, name); err != nil {
return err
Expand Down

0 comments on commit a0b51e1

Please sign in to comment.