func (c *CmdFavoriteAdd) Run() error { arg := keybase1.FavoriteAddArg{ Folder: c.folder, } cli, err := GetFavoriteClient() if err != nil { return err } return cli.FavoriteAdd(context.TODO(), arg) }
func (c *CmdFavoriteAdd) Run() error { arg := keybase1.FavoriteAddArg{ Folder: c.folder, } cli, err := GetFavoriteClient() if err != nil { return err } protocols := []rpc.Protocol{ NewIdentifyUIProtocol(c.G()), } if err := RegisterProtocolsWithContext(protocols, c.G()); err != nil { return err } return cli.FavoriteAdd(context.TODO(), arg) }