Versions in this module Expand all Collapse all v0 v0.7.1 Oct 27, 2026 Changes in this version + func RunRoot(ctx context.Context, root *urfave.Command, args []string) error v0.7.0 Oct 27, 2026 Changes in this version + const FlagDir + const FlagDryRun + const FlagForce + const FlagFormat + const FlagGo + const FlagJSON + const FlagJobs + const FlagNoMigrate + const FlagOffline + const FlagPrefix + const FlagRestore + const FlagStrategy + const FlagText + const FlagYes + const HelpTemplate + const NameCheck + const NameConfig + const NameDoctor + const NameExec + const NameInfo + const NameInit + const NameInstall + const NameList + const NameMigrate + const NamePurge + const NameRemove + const NameRename + const NameSelfUpdate + const NameSync + const NameUninstall + const NameUpgrade + const NameVersion + const ProductName + func Prose(description, program string) string + func UsageError(_ context.Context, c *urfave.Command, err error, _ bool) error + type AdoptParams struct + DryRun bool + Specs []modparser.Spec + type Check struct + func NewCheck() *Check + func (*Check) Name() string + func (base *Check) Build(c *Context) *urfave.Command + type Command interface + Build func(c *Context) *urfave.Command + Name func() string + func All() []Command + type Commander struct + Commands []Command + func (c *Commander) RegisterCommand(cmd Command) + func (c *Commander) Run(ctx context.Context, args []string) error + type Config struct + func NewConfig() *Config + func (*Config) Name() string + func (base *Config) Build(c *Context) *urfave.Command + type Context struct + Completing bool + Config config.Config + Environ []string + Exe func() (string, error) + Fingerprint fingerprint.Fingerprinter + Go gocmd.Runner + HasManifest bool + Interactive bool + Locker lock.Locker + Manifest *manifest.Manifest + ModFiles modparser.Parser + Process gocmd.ProcessRunner + Program string + ReadOnly bool + Releases selfupdate.Source + Root string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Version string + Warnings []string + WorkDir string + func (c *Context) Adopt(ctx context.Context, p AdoptParams) error + func (c *Context) Executable() (string, error) + func (c *Context) ExecutablePaths() (started, resolved string, err error) + func (c *Context) Flush() error + func (c *Context) Install(ctx context.Context, p InstallParams) error + func (c *Context) Layout() strategy.Layout + func (c *Context) Load(ctx context.Context, opts ...config.Option) error + func (c *Context) LoadOrDefaults(ctx context.Context, opts ...config.Option) string + func (c *Context) ManagedAs(t modparser.Spec) (string, bool) + func (c *Context) ManifestPath() string + func (c *Context) Migrate(ctx context.Context, p MigrateParams) error + func (c *Context) ModulePrefix() string + func (c *Context) Network() gocmd.Runner + func (c *Context) PlanAdoption(p PlanAdoptionParams) ([]modparser.Spec, error) + func (c *Context) Prober() *resolve.Prober + func (c *Context) Processes() gocmd.ProcessRunner + func (c *Context) Record(ctx context.Context) error + func (c *Context) RecreateCommand() string + func (c *Context) ReleaseSource() selfupdate.Source + func (c *Context) Resolver() *resolve.Resolver + func (c *Context) RestoreToRoot(ctx context.Context, p RestoreToRootParams) error + func (c *Context) RootGoMod() string + func (c *Context) Runner() gocmd.Runner + func (c *Context) Sync(ctx context.Context, p SyncParams) error + func (c *Context) Tools() *tools.GoManager + func (c *Context) ToolsDir() string + func (c *Context) ToolsOnDisk() ([]modparser.Spec, error) + func (c *Context) Tracer(ctx context.Context) tracer.Tracer + func (c *Context) Unmanaged(specs []modparser.Spec) []modparser.Spec + func (c *Context) WithLock(ctx context.Context, fn func(context.Context) error) error + type Doctor struct + func NewDoctor() *Doctor + func (*Doctor) Name() string + func (base *Doctor) Build(c *Context) *urfave.Command + type Exec struct + func NewExec() *Exec + func (*Exec) Name() string + func (base *Exec) Build(c *Context) *urfave.Command + type Info struct + func NewInfo() *Info + func (*Info) Name() string + func (base *Info) Build(c *Context) *urfave.Command + type Init struct + func NewInit() *Init + func (*Init) Name() string + func (base *Init) Build(c *Context) *urfave.Command + type Install struct + func NewInstall() *Install + func (*Install) Name() string + func (*Install) Pipe(ctx context.Context, c *Context, data []byte) error + func (base *Install) Build(c *Context) *urfave.Command + type InstallParams struct + Force bool + Specs []tools.AddOptions + type List struct + func NewList() *List + func (*List) Name() string + func (base *List) Build(c *Context) *urfave.Command + type Migrate struct + func NewMigrate() *Migrate + func (*Migrate) Name() string + func (base *Migrate) Build(c *Context) *urfave.Command + type MigrateParams struct + DryRun bool + PersistStrategy bool + To strategy.Strategy + type Piped interface + Pipe func(ctx context.Context, c *Context, data []byte) error + type PlanAdoptionParams struct + NoMigrate bool + type Purge struct + func NewPurge() *Purge + func (*Purge) Name() string + func (base *Purge) Build(c *Context) *urfave.Command + type Remove struct + func NewRemove() *Remove + func (*Remove) Name() string + func (base *Remove) Build(c *Context) *urfave.Command + type Rename struct + func NewRename() *Rename + func (*Rename) Name() string + func (base *Rename) Build(c *Context) *urfave.Command + type RestoreToRootParams struct + DryRun bool + type SelfUpdate struct + func NewSelfUpdate() *SelfUpdate + func (*SelfUpdate) Name() string + func (base *SelfUpdate) Build(c *Context) *urfave.Command + type Spec struct + After Step + Aliases []string + Args []urfave.Argument + ArgsUsage string + Before Step + Complete urfave.ShellCompleteFunc + Description string + Examples []string + Flags []urfave.Flag + Name string + Run Step + SkipFlagParsing bool + Usage string + func (s Spec) Build(c *Context) *urfave.Command + type Step func(ctx context.Context, cmd *urfave.Command) error + type Sync struct + func NewSync() *Sync + func (*Sync) Name() string + func (base *Sync) Build(c *Context) *urfave.Command + type SyncParams struct + DryRun bool + Jobs int + Offline bool + Unlocked bool + type Uninstall struct + func NewUninstall() *Uninstall + func (*Uninstall) Name() string + func (base *Uninstall) Build(c *Context) *urfave.Command + type Upgrade struct + func NewUpgrade() *Upgrade + func (*Upgrade) Name() string + func (base *Upgrade) Build(c *Context) *urfave.Command + type Version struct + func NewVersion() *Version + func (*Version) Name() string + func (base *Version) Build(c *Context) *urfave.Command