Documentation
¶
Index ¶
- func Execute()
- func RunConfigBadges(appCfg *config.Config, rootDir string, names []string, status string) error
- func RunDockerReadme(ctx context.Context, appCfg *config.Config, rootDir string, dryRun bool) error
- func RunDocsGenerate(rootCommand *cobra.Command, outputDir string) error
- func RunNarrator(appCfg *config.Config, rootDir string, dryRun bool, isVerbose bool) error
- func RunReleaseCreate(req ReleaseCreateRequest) error
- func RunSecurityScan(req SecurityScanRequest) error
- type ExitError
- type ReleaseCreateRequest
- type SecurityScanRequest
- type SilentExitError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute runs the root command. All exit paths call os.Exit explicitly.
func RunConfigBadges ¶
RunConfigBadges generates SVG badges from narrator config items. Extracted for reuse by both Cobra command and CI runners.
func RunDockerReadme ¶
RunDockerReadme syncs README content to container registries. Extracted for reuse by both Cobra command and CI runners.
func RunDocsGenerate ¶
RunDocsGenerate generates reference documentation from the Cobra command tree. Extracted for reuse by both Cobra command and CI runners. Requires rootCmd for CLI reference generation — pass it explicitly.
func RunNarrator ¶
RunNarrator runs narrator items from config. Extracted for reuse by both Cobra command and CI runners.
func RunReleaseCreate ¶ added in v0.4.0
func RunReleaseCreate(req ReleaseCreateRequest) error
RunReleaseCreate executes the full release creation pipeline from an explicit request. All inputs are taken from req — no package-level vars are referenced.
func RunSecurityScan ¶ added in v0.4.0
func RunSecurityScan(req SecurityScanRequest) error
RunSecurityScan executes the full security scan pipeline from an explicit request. All inputs are taken from req — no package-level vars are referenced.
Types ¶
type ReleaseCreateRequest ¶ added in v0.4.0
type ReleaseCreateRequest struct {
Ctx context.Context
RootDir string
Config *config.Config
Tag string
Name string
NotesFile string
SecuritySummary string
Draft bool
Prerelease bool
Assets []string
RegistryLinks bool
CatalogLinks bool
SkipSync bool
Verbose bool
Writer io.Writer
}
ReleaseCreateRequest is the explicit input contract for RunReleaseCreate. Cobra command fills this from flags; CI runner fills it from config/ciCtx. Ctx is inside the request (matches docker.Request pattern).
type SecurityScanRequest ¶ added in v0.4.0
type SecurityScanRequest struct {
Ctx context.Context
RootDir string
Config *config.Config
Image string // explicit image ref; empty = auto-resolve from manifest
OutputDir string // empty = from Config.Security.OutputDir
SBOM bool
FailOnCritical bool
Skip bool
Detail string // none|counts|detailed|full; empty = from config
Strict bool
Verbose bool
Writer io.Writer
}
SecurityScanRequest is the explicit input contract for RunSecurityScan. Cobra command fills this from flags; CI runner fills it from config/ciCtx. Ctx is inside the request (matches docker.Request pattern).
type SilentExitError ¶ added in v0.4.0
type SilentExitError struct {
Code int
}
SilentExitError signals a non-zero exit without printing anything. Used when the error has already been rendered (e.g. summary + Exit Reason).
func (*SilentExitError) Error ¶ added in v0.4.0
func (e *SilentExitError) Error() string
Source Files
¶
- badge.go
- badge_generate.go
- build.go
- build_binary.go
- ci.go
- ci_run.go
- ci_runners.go
- colors.go
- commit.go
- component.go
- component_docs.go
- dependency.go
- dependency_update.go
- docker.go
- docker_build.go
- docker_readme.go
- docs.go
- docs_generate.go
- docs_run.go
- exit.go
- lint.go
- manifest.go
- manifest_diff.go
- manifest_generate.go
- manifest_inspect.go
- migrate.go
- narrator.go
- narrator_compose.go
- narrator_run.go
- props.go
- props_categories.go
- props_list.go
- props_render.go
- props_show.go
- release.go
- release_create.go
- release_notes.go
- release_prune.go
- root.go
- security.go
- security_scan.go
- version.go