Skip to content

Commit a0b51e1

Browse files
authored
init plural client in crypto commands (#220)
Signed-off-by: DavidSpek <vanderspek.david@gmail.com> Signed-off-by: DavidSpek <vanderspek.david@gmail.com>
1 parent 75cd2db commit a0b51e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/plural/crypto.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ func cryptoInit(c *cli.Context) error {
262262
}
263263

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

278279
func (p *Plural) handleSetupKeys(c *cli.Context) error {
280+
p.InitPluralClient()
279281
name := c.String("name")
280282
if err := crypto.SetupIdentity(p.Client, name); err != nil {
281283
return err

0 commit comments

Comments
 (0)