Documentation
¶
Overview ¶
Package initialize implements the deployah init command.
Init is a TTY-only wizard: it walks through project name, environments, and components, then writes a sparse deployah.yaml (schema defaults omitted), merges missing keys into the platform file, and scaffolds .deployah extras directories. Dry-run mode previews the spec without writing files. There is no non-interactive defaults path.
Register the command with Register on a nabat.dev/nabat.App instance.
Index ¶
Constants ¶
View Source
const (
// DefaultEnvironmentName is the Kind environment offered in the wizard.
DefaultEnvironmentName = "local"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProjectConfig ¶
type ProjectConfig struct {
Name string
// EnvironmentNames are registered in the platform file, not in the
// generated spec: the spec's environments map is overrides-only.
EnvironmentNames []string
Components map[string]spec.Component
SpecPath string
PlatformPath string
DryRun bool
}
ProjectConfig holds the collected configuration data.
Click to show internal directories.
Click to hide internal directories.