func (s *CmdTestPassphrase) Run() (err error) { defer libkb.Trace(s.G().Log, "CmdTestPassphrase.Run", func() error { return err })() protocols := []rpc.Protocol{ NewSecretUIProtocol(s.G()), } if err = RegisterProtocols(protocols); err != nil { return err } cli, err := GetAccountClient(s.G()) if err != nil { return err } arg := keybase1.PassphrasePromptArg{ GuiArg: libkb.DefaultPassphraseArg(), } res, err := cli.PassphrasePrompt(context.TODO(), arg) if err != nil { return err } res.Passphrase = "[passphrase redacted]" s.G().Log.Debug("passphrase prompt result: %+v", res) return nil }
// Run starts the engine. func (e *DeviceKeyfinder) Run(ctx *Context) (err error) { defer libkb.Trace(e.G().Log, "DeviceKeyfinder::Run", func() error { return err })() err = e.identifyUsers(ctx) if err != nil { return err } return nil }