Versions in this module Expand all Collapse all v0 v0.1.0 Apr 8, 2026 Changes in this version + const ExitEventType + func ConfigCommand(app Application, opts *ConfigCommandConfig) *cobra.Command + func DefaultLogger(clioCfg Config, store redact.Store) (logger.Logger, error) + func ExitEvent(interrupt bool) partybus.Event + func VersionCommand(id Identification, additions ...versionAddition) *cobra.Command + type Application interface + AddFlags func(flags *pflag.FlagSet, cfgs ...any) + ID func() Identification + Run func() + SetupCommand func(cmd *cobra.Command, cfgs ...any) *cobra.Command + SetupRootCommand func(cmd *cobra.Command, cfgs ...any) *cobra.Command + func New(cfg SetupConfig) Application + type BusConstructor func(Config) *partybus.Bus + type Config struct + Dev *DevelopmentConfig + FromCommands []any + Log *LoggingConfig + type ConfigCommandConfig struct + IncludeLocationsSubcommand bool + LoadConfig bool + ReplaceHomeDirWithTilde bool + func DefaultConfigCommandConfig() *ConfigCommandConfig + func (c *ConfigCommandConfig) WithIncludeLocationsSubcommand(include bool) *ConfigCommandConfig + func (c *ConfigCommandConfig) WithReplaceHomeDirWithTilde(replace bool) *ConfigCommandConfig + type DevelopmentConfig struct + Profile Profile + func (d *DevelopmentConfig) DescribeFields(set fangs.FieldDescriptionSet) + func (d *DevelopmentConfig) PostLoad() error + type FieldDescriber interface + DescribeFields func(descriptions FieldDescriptionSet) + type FieldDescriptionSet = fangs.FieldDescriptionSet + type FlagAdder interface + AddFlags func(flags FlagSet) + type FlagSet = fangs.FlagSet + type Identification struct + BuildDate string + GitCommit string + GitDescription string + Name string + Version string + type Initializer func(*State) error + type LoggerConstructor func(Config, redact.Store) (logger.Logger, error) + type LoggingConfig struct + FileLocation string + Level logger.Level + Quiet bool + Verbosity int + func (l *LoggingConfig) AddFlags(flags fangs.FlagSet) + func (l *LoggingConfig) AllowUI(stdin fs.File) bool + func (l *LoggingConfig) DescribeFields(d fangs.FieldDescriptionSet) + func (l *LoggingConfig) PostLoad() error + type MapExitCode func(error) int + type PostLoader = fangs.PostLoader + type PostRun func(*State, error) + type Profile string + type SetupConfig struct + BusConstructor BusConstructor + DefaultDevelopmentConfig *DevelopmentConfig + DefaultLoggingConfig *LoggingConfig + FangsConfig fangs.Config + ID Identification + Initializers []Initializer + LoggerConstructor LoggerConstructor + UIConstructor UIConstructor + func NewSetupConfig(id Identification) *SetupConfig + func (c *SetupConfig) WithBusConstructor(constructor BusConstructor) *SetupConfig + func (c *SetupConfig) WithConfigFinders(finders ...fangs.Finder) *SetupConfig + func (c *SetupConfig) WithConfigInRootHelp() *SetupConfig + func (c *SetupConfig) WithDevelopmentConfig(cfg DevelopmentConfig) *SetupConfig + func (c *SetupConfig) WithGlobalConfigFlag() *SetupConfig + func (c *SetupConfig) WithGlobalLoggingFlags() *SetupConfig + func (c *SetupConfig) WithInitializers(initializers ...Initializer) *SetupConfig + func (c *SetupConfig) WithLoggerConstructor(constructor LoggerConstructor) *SetupConfig + func (c *SetupConfig) WithLoggingConfig(cfg LoggingConfig) *SetupConfig + func (c *SetupConfig) WithMapExitCode(mapExitCode MapExitCode) *SetupConfig + func (c *SetupConfig) WithNoBus() *SetupConfig + func (c *SetupConfig) WithNoLogging() *SetupConfig + func (c *SetupConfig) WithPostRuns(postRuns ...PostRun) *SetupConfig + func (c *SetupConfig) WithUI(uis ...UI) *SetupConfig + func (c *SetupConfig) WithUIConstructor(constructor UIConstructor) *SetupConfig + type State struct + Bus *partybus.Bus + Config Config + Logger logger.Logger + RedactStore redact.Store + Subscription *partybus.Subscription + UI *UICollection + type UI interface + Setup func(subscription partybus.Unsubscribable) error + Teardown func(force bool) error + type UICollection struct + func NewUICollection(uis ...UI) *UICollection + func (u *UICollection) Replace(uis ...UI) error + func (u *UICollection) Setup(subscription partybus.Unsubscribable) error + func (u *UICollection) Teardown(force bool) error + func (u UICollection) Handle(event partybus.Event) error + type UIConstructor func(Config) (*UICollection, error)