Versions in this module Expand all Collapse all v0 v0.1.0 Sep 12, 2023 Changes in this version + var CurrentVersion = "development" + var ErrRepoRootNotFound = errors.New("failed to detect repo root") + var ErrVaultNotInitiated = errors.New("vault is not initiated set either vault-passphrase or vault-passphrase-file") + func BootstrapModuleCmd(category modules.Category, cmder BootstrapModuleCommander, ...) *cobra.Command + func EnvCommand(cmder EnvCommander) *cobra.Command + func ExecuteModuleCommand(category modules.Category, cmder ModuleCommander, ...) *cobra.Command + func ManCmd(cmder ManCommander, initializer LevelInitializer, ...) *cobra.Command + func ModuleManCommand(category modules.Category, cmder ManCommander, initializer LevelInitializer, ...) *cobra.Command + func ModulesCommand(initializer LevelInitializer, registryAcc TypeRegistryAccessor, ...) *cobra.Command + func ModulesListCommand(initializer LevelInitializer, registryAcc TypeRegistryAccessor, out io.Writer) *cobra.Command + func NewCmd(subCommands ...*cobra.Command) *cobra.Command + func PluginListCommand(cmder PluginCommander, initializer LevelInitializer) *cobra.Command + func PluginUpdateCommand(cmder PluginCommander, initializer LevelInitializer) *cobra.Command + func PluginsCommand(cmder PluginCommander, initializer LevelInitializer) *cobra.Command + func ServerCommand(cmder ServerCommander) *cobra.Command + func VaultCommand(cmder VaultCommander) *cobra.Command + func VersionCommand() *cobra.Command + type App struct + func NewApp() *App + func (a *App) AppConfig() AppConfig + func (a *App) BootstrapModule(ctx context.Context, cat modules.Category, typeName, moduleName string) error + func (a *App) BuildrConfig() config.Buildr + func (a *App) Init(ctx context.Context) (err error) + func (a *App) InitAt(ctx context.Context, lvl InitLevel) error + func (a *App) Repository() *modules.Repository + func (a *App) Run(ctx context.Context) error + func (a *App) RunModule(ctx context.Context, cat modules.Category, name string) error + func (a *App) RunWithArgs(ctx context.Context, args ...string) error + func (a *App) SetInitializer(lvl InitLevel, init AppInitializer) + func (a *App) Shutdown() error + type AppConfig struct + BuildRDirectory string + Cache struct{ ... } + Execution struct{ ... } + Profiling profiling.Config + RepoRoot string + State struct{ ... } + VCSType vcs.Type + Vault struct{ ... } + func (c *AppConfig) BuildRFS() fs.FS + func (c *AppConfig) CollectRepoDetails(vcsInfo any) (repoDetails repo.Repo, err error) + func (c *AppConfig) Flags() *flag.FlagSet + func (c *AppConfig) Ignorer() (*ignore.Ignorer, error) + func (c *AppConfig) InitPaths(from string) (err error) + func (c *AppConfig) InitState(ctx context.Context) (*state.DB, error) + func (c *AppConfig) InitVault() (*vault.Vault, error) + func (c *AppConfig) ParseVCSInfo() (vcsDetails any, err error) + func (c *AppConfig) RepoFS() fs.FS + type AppConfigAccessor interface + AppConfig func() AppConfig + type AppInitializer interface + Init func(ctx context.Context) error + type AppInitializerFunc func(ctx context.Context) error + func (f AppInitializerFunc) Init(ctx context.Context) error + type BootstrapModuleCommander interface + BootstrapModule func(ctx context.Context, cat modules.Category, typeName, moduleName string) error + type BuildrConfigAccessor interface + BuildrConfig func() config.Buildr + type CommandPager struct + func NewCmdPager(ctx context.Context, pagerCmd string, colorize bool) (p *CommandPager, err error) + func (c *CommandPager) Display() error + func (c *CommandPager) Write(p []byte) (n int, err error) + type EnvApp struct + func NewEnvApp(initializer LevelInitializer, accessor BuildrConfigAccessor) *EnvApp + func (e EnvApp) PrintPath(ctx context.Context, writer io.Writer) error + type EnvCommander interface + PrintPath func(ctx context.Context, writer io.Writer) error + type InitLevel int + const InitLevelBasic + const InitLevelBuildRConfig + const InitLevelNone + const InitLevelParseConfig + type KnownModulesArgProvider interface + ValidModulesArgs func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + func ModulesArgsProviderFor(initializer LevelInitializer, registryAcc TypeRegistryAccessor, ...) KnownModulesArgProvider + type KnownModulesArgProviderFunc func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + func (f KnownModulesArgProviderFunc) ValidModulesArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + type KnownTasksArgProvider interface + ValidTasksArgs func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + func TasksArgsProviderFor(initializer LevelInitializer, repoAcc ModuleRepositoryAccessor, ...) KnownTasksArgProvider + type KnownTasksArgProviderFunc func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + func (f KnownTasksArgProviderFunc) ValidTasksArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + type LevelInitializer interface + InitAt func(ctx context.Context, lvl InitLevel) error + type ManApp struct + func NewManApp(templatesFs fs.FS, svcAcc ManAppServiceAccess) (*ManApp, error) + func (m ManApp) DisplayModuleManual(ctx context.Context, pager Pager, cat modules.Category, name string) error + func (m ManApp) DisplayModulesManual(pager Pager) error + type ManAppServiceAccess interface + type ManCommander interface + DisplayModuleManual func(ctx context.Context, pager Pager, cat modules.Category, name string) error + DisplayModulesManual func(pager Pager) error + type ManConfig struct + ColorOutput PagerColor + PagerCommand string + func (m *ManConfig) Flags() *flag.FlagSet + func (m *ManConfig) Pager(ctx context.Context, title string) (Pager, error) + type ModuleCommandOption func(cmd *cobra.Command) + func WithShort(short string) ModuleCommandOption + type ModuleCommander interface + RunModule func(ctx context.Context, cat modules.Category, name string) error + type ModuleRepositoryAccessor interface + Repository func() *modules.Repository + type Pager interface + Display func() error + type PagerColor string + const PagerColorAlways + const PagerColorAuto + const PagerColorNever + func (p *PagerColor) Set(s string) error + func (p *PagerColor) String() string + type PluginApp struct + func NewPluginApp(buildrCfg *config.Buildr, pluginMgr *plugins.Manager, ...) *PluginApp + func (p PluginApp) ListPlugins(ctx context.Context, writer io.Writer) error + func (p PluginApp) UpdatePlugins(ctx context.Context) error + type PluginAppServiceAccess interface + type PluginCommander interface + ListPlugins func(ctx context.Context, writer io.Writer) error + UpdatePlugins func(ctx context.Context) error + type ServerApp struct + func NewServerApp(initializer LevelInitializer, accessor services.TypeRegistryAccessor) *ServerApp + func (s *ServerApp) ServeAPI(ctx context.Context, cfg *rpc.GrpcConfig) error + type ServerCommander interface + ServeAPI func(ctx context.Context, cfg *rpc.GrpcConfig) error + type TUIPager struct + func NewTUIPager(title string) (*TUIPager, error) + func (t *TUIPager) Display() error + func (t *TUIPager) Write(p []byte) (n int, err error) + type TypeRegistryAccessor interface + TypeRegistry func() *modules.TypeRegistry + type VaultApp struct + func NewVaultApp(initializer LevelInitializer, serviceAccess VaultAppServiceAccess, ...) *VaultApp + func (v VaultApp) Get(ctx context.Context, key string, writer io.Writer) error + func (v VaultApp) Init(ctx context.Context, initCfg VaultInitConfig) error + func (v VaultApp) List(ctx context.Context, writer io.Writer) error + func (v VaultApp) Remove(ctx context.Context, key string) error + func (v VaultApp) Set(ctx context.Context, key string, value []byte) error + type VaultAppServiceAccess interface + type VaultCommander interface + Get func(ctx context.Context, key string, writer io.Writer) error + Init func(ctx context.Context, cfg VaultInitConfig) error + List func(ctx context.Context, writer io.Writer) error + Remove func(ctx context.Context, key string) error + Set func(ctx context.Context, key string, value []byte) error + type VaultInitConfig struct + PassphraseLength uint + func (c *VaultInitConfig) Flags() *flag.FlagSet