Beispiel #1
0
func (v *CmdTrack) Run() error {
	cli, err := GetTrackClient()
	if err != nil {
		return err
	}

	protocols := []rpc.Protocol{
		NewIdentifyTrackUIProtocol(),
		NewSecretUIProtocol(G),
	}
	if err = RegisterProtocols(protocols); err != nil {
		return err
	}

	return cli.Track(context.TODO(), keybase1.TrackArg{
		UserAssertion: v.user,
		Options:       v.options,
	})
}
Beispiel #2
0
func (v *CmdTrack) Run() error {
	cli, err := GetTrackClient(v.G())
	if err != nil {
		return err
	}

	protocols := []rpc.Protocol{
		NewIdentifyTrackUIProtocol(v.G()),
		NewSecretUIProtocol(v.G()),
	}
	if err = RegisterProtocolsWithContext(protocols, v.G()); err != nil {
		return err
	}

	return cli.Track(context.TODO(), keybase1.TrackArg{
		UserAssertion:    v.user,
		Options:          v.options,
		ForceRemoteCheck: v.skipProofCache,
	})
}