Skip to content

Commit

Permalink
Add --skipcache option to id command
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Sanders committed Mar 12, 2016
1 parent 5aaf452 commit 9d25fd9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions go/client/cmd_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type CmdID struct {
user string
trackStatement bool
useDelegateUI bool
skipCache bool
}

func (v *CmdID) ParseArgv(ctx *cli.Context) error {
Expand All @@ -33,15 +34,17 @@ func (v *CmdID) ParseArgv(ctx *cli.Context) error {
}
v.trackStatement = ctx.Bool("track-statement")
v.useDelegateUI = ctx.Bool("ui")
v.skipCache = ctx.Bool("skip-cache")
return nil
}

func (v *CmdID) makeArg() keybase1.IdentifyArg {
return keybase1.IdentifyArg{
UserAssertion: v.user,
TrackStatement: v.trackStatement,
UseDelegateUI: v.useDelegateUI,
Reason: keybase1.IdentifyReason{Reason: "CLI id command"},
UserAssertion: v.user,
TrackStatement: v.trackStatement,
UseDelegateUI: v.useDelegateUI,
Reason: keybase1.IdentifyReason{Reason: "CLI id command"},
ForceRemoteCheck: v.skipCache,
}
}

Expand Down Expand Up @@ -89,6 +92,11 @@ func NewCmdID(cl *libcmdline.CommandLine, g *libkb.GlobalContext) cli.Command {
Usage: "Use identify UI.",
HideUsage: !develUsage,
},
cli.BoolFlag{
Name: "s, skip-cache",
Usage: "Skip cached proofs, force re-check",
HideUsage: !develUsage,
},
},
Action: func(c *cli.Context) {
cl.ChooseCommand(NewCmdIDRunner(g), "id", c)
Expand Down

0 comments on commit 9d25fd9

Please sign in to comment.