Documentation
¶
Overview ¶
Package panelreg provides a global panel builder registry that enables panel packages to self-register via init() without creating import cycles between layout and individual panel packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
Ctx context.Context
Config *config.Config
GitClient git.GitClient // shared client; may be nil
Theme *theme.Theme // may be nil
}
Deps holds runtime dependencies available to panel builders. It is populated once at startup and passed to every registered builder.
func (Deps) ApplyActionsCfg ¶
ApplyActionsCfg injects the actions configuration into panels that support the optional SetActionsCfg method.
func (Deps) NewGitClient ¶
NewGitClient creates a fresh git client for the current working directory. Returns (client, cwd, error).
Click to show internal directories.
Click to hide internal directories.