From a0b51e1ea9289bbb1cd507748be5f952d5d1c38f Mon Sep 17 00:00:00 2001 From: David van der Spek Date: Thu, 15 Sep 2022 09:57:33 +0200 Subject: [PATCH] init plural client in crypto commands (#220) Signed-off-by: DavidSpek Signed-off-by: DavidSpek --- cmd/plural/crypto.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/plural/crypto.go b/cmd/plural/crypto.go index a6182f05..a6854c59 100644 --- a/cmd/plural/crypto.go +++ b/cmd/plural/crypto.go @@ -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 @@ -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