Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + var CleanupTimeout = time.Second * 10 + var ExitFuncForTesting = os.Exit + var Flags AppFlags + var LogHandler log.Indirect + var Name string + var Restart = fault.Const("Restart") + var ShortHelp = "" + var ShortUsage = "" + var UsageFooter = "" + var Version VersionSpec + func AddCleanup(ctx context.Context, f func()) + func AddCleanupSignal(s ...task.Event) + func AddInterruptHandler(f func()) func() + func MakeDoc(ctx context.Context) + func Run(main task.Task) + func Usage(ctx context.Context, message string, args ...interface{}) + func VerbMain(ctx context.Context) error + func WaitForCleanup(ctx context.Context) bool + type Action interface + Run func(ctx context.Context, flags flag.FlagSet) error + type AppFlags struct + Analytics string + Args string + CrashReport bool + DecodeStack string + FullHelp bool + Log LogFlags + Profile ProfileFlags + Version bool + type Cleanup func(ctx context.Context) + func (c Cleanup) Invoke(ctx context.Context) Cleanup + func (c Cleanup) Then(next Cleanup) Cleanup + type ExitCode int + const FatalExit + const SuccessExit + const UsageExit + type LogFlags struct + File string + Level log.Severity + Stacks bool + Status bool + Style log.Style + type ProfileFlags struct + CPU string + Mem string + Pprof bool + Trace string + type Verb struct + Action Action + Name string + ShortHelp string + ShortUsage string + func AddVerb(v *Verb) *Verb + func FilterVerbs(prefix string) (result []*Verb) + func (v *Verb) Add(child *Verb) + func (v *Verb) Filter(prefix string) (result []*Verb) + func (v *Verb) Invoke(ctx context.Context, args []string) error + type VersionSpec struct + Build string + Major int + Minor int + Point int + func (v VersionSpec) Equal(o VersionSpec) bool + func (v VersionSpec) Format(f fmt.State, c rune) + func (v VersionSpec) GetDevVersion() int + func (v VersionSpec) GreaterThan(o VersionSpec) bool + func (v VersionSpec) IsValid() bool + func (v VersionSpec) String() string Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021