Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckDBCmd ¶
type CheckDBCmd struct {
Project string `name:"project" placeholder:"ID" help:"Project id. Empty = read from the current project's lock."`
Name string `name:"name" placeholder:"NAME" required:"" help:"Environment whose DB you are about to migrate."`
Target string `` /* 142-byte string literal not displayed */
}
func (*CheckDBCmd) Run ¶
func (c *CheckDBCmd) Run(parent *Cmd) error
Run is the dev "wipe your DB" warning: it asks the compat engine whether the environment's currently-deployed schema can forward- migrate to the target snapshot. v1 uses the env's deployed_snapshot as the proxy for the live DB's applied schema (real live-DB schema introspection is a richer follow-up). Only DB-domain findings matter — a wire/API break does not require a DB reset. A BREAKING DB finding means the DB cannot be safely forward-migrated → reset it.
type Cmd ¶
type Cmd struct {
Console string `` /* 178-byte string literal not displayed */
Create CreateCmd `cmd:"" help:"Create an environment (dev|prod)."`
List ListCmd `cmd:"" help:"List a project's environments."`
SetMode SetModeCmd `cmd:"" name:"set-mode" help:"Flip an environment between dev and prod."`
SetDeployed SetDeployedCmd `cmd:"" name:"set-deployed" help:"Pin what snapshot is live in an environment (the prod-gate baseline)."`
CheckDB CheckDBCmd `` /* 135-byte string literal not displayed */
}
Cmd is `w17ctl env` — deployment environments + their mode. A prod-mode environment turns the compat engine's BREAKING verdict into a hard block at review-merge (see `review merge`). Client orchestration over the generated storage; no facade.
type CreateCmd ¶
type CreateCmd struct {
Project string `name:"project" placeholder:"ID" help:"Project id. Empty = read from the current project's lock."`
Name string `name:"name" placeholder:"NAME" required:"" help:"Environment name (dev/staging/prod/…)."`
Mode string `name:"mode" placeholder:"dev|prod" default:"dev" help:"Environment mode."`
}
type ListCmd ¶
type ListCmd struct {
Project string `name:"project" placeholder:"ID" help:"Project id. Empty = read from the current project's lock."`
}
type SetDeployedCmd ¶
type SetDeployedCmd struct {
Project string `name:"project" placeholder:"ID" help:"Project id. Empty = read from the current project's lock."`
Name string `name:"name" placeholder:"NAME" required:"" help:"Environment name."`
Snapshot string `name:"snapshot" placeholder:"SNAP" required:"" help:"Snapshot id that is now live in this environment."`
}
func (*SetDeployedCmd) Run ¶
func (c *SetDeployedCmd) Run(parent *Cmd) error
type SetModeCmd ¶
type SetModeCmd struct {
Project string `name:"project" placeholder:"ID" help:"Project id. Empty = read from the current project's lock."`
Name string `name:"name" placeholder:"NAME" required:"" help:"Environment name."`
Mode string `name:"mode" placeholder:"dev|prod" required:"" help:"New mode."`
}
func (*SetModeCmd) Run ¶
func (c *SetModeCmd) Run(parent *Cmd) error