func (v *CmdPGPPull) Run() (err error) {
	cli, err := GetPGPClient()
	if err != nil {
		return err
	}

	if err = RegisterProtocols(nil); err != nil {
		return err
	}

	return cli.PGPPull(context.TODO(), keybase1.PGPPullArg{
		UserAsserts: v.userAsserts,
	})
}
Exemple #2
0
func (v *CmdPGPPull) Run() (err error) {
	cli, err := GetPGPClient()
	if err != nil {
		return err
	}
	protocols := []rpc.Protocol{
		NewIdentifyTrackUIProtocol(v.G()),
	}
	if err = RegisterProtocols(protocols); err != nil {
		return err
	}

	return cli.PGPPull(context.TODO(), keybase1.PGPPullArg{
		UserAsserts: v.userAsserts,
	})
}