MCPcopy
hub / github.com/urfave/cli / RunAction

Method RunAction

flag_bool_with_inverse.go:50–56  ·  view source on GitHub ↗
(ctx context.Context, cmd *Command)

Source from the content-addressed store, hash-verified

48}
49
50func (bif *BoolWithInverseFlag) RunAction(ctx context.Context, cmd *Command) error {
51 if bif.Action != nil {
52 return bif.Action(ctx, cmd, bif.Get().(bool))
53 }
54
55 return nil
56}
57
58func (bif *BoolWithInverseFlag) IsLocal() bool {
59 return bif.Local

Callers

nothing calls this directly

Calls 1

GetMethod · 0.95

Tested by

no test coverage detected