env

package
v0.1.0-rc.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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."`
}

func (*CreateCmd) Run

func (c *CreateCmd) Run(parent *Cmd) error

type ListCmd

type ListCmd struct {
	Project string `name:"project" placeholder:"ID" help:"Project id. Empty = read from the current project's lock."`
}

func (*ListCmd) Run

func (c *ListCmd) Run(parent *Cmd) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL