Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand returns a new platform command wired to cfg. Flags are not wired to cfg automatically to allow callers to compose behavior as needed. Use cmd.Flags().AddFlagSet(cfg.FlagSet()) to wire them up.
Types ¶
type BuildOpts ¶
type BuildOpts struct {
PerComponentFunc func(context.Context, int, holos.Component) error
InfoEnabled bool
}
BuildOpts represents build options when processing the components in a platform.
type Config ¶
type Config struct {
// ComponentSelectors select platform components to process.
ComponentSelectors holos.Selectors
// TagMap represents cue tags to inject.
TagMap holos.TagMap
// Concurrency represents the number of subcommands to execute concurrently.
Concurrency int
// WriteTo represents the output base directory for rendered artifacts.
WriteTo string
// Stdout represents the standard output pipe.
Stdout io.Writer
// Stderr represents the standard error pipe. Used to copy stderr output from
// subcommands.
Stderr io.Writer
}
func (*Config) FlagSetTags ¶
Click to show internal directories.
Click to hide internal directories.