ci

package
v0.1.0-rc.76 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ci implements `w17ctl ci` — the automation that builds the images and deploys the declared infrastructure. The choice is one SetInfra lock edit (the CI block plus each environment's deploy branch); the workflows themselves are rendered by the console during codegen into .github/workflows/w17-*.yaml.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wizard

func Wizard(p prompter.Prompter, in *codegenpb.LockInfra, f flags) error

Wizard asks for the CI choice, defaulting to what is declared (or the conventions), and writes it into in.

Types

type Cmd

type Cmd struct {
	Init   InitCmd   `` /* 286-byte string literal not displayed */
	Update UpdateCmd `cmd:"" help:"Change the CI choice. The same prompts, each defaulting to what the lock declares now."`
	Show   ShowCmd   `cmd:"" help:"Print the CI choice and what to set up in GitHub."`
	Remove RemoveCmd `cmd:"" help:"Stop generating the workflows. The next codegen deletes the w17-*.yaml it wrote."`
}

Cmd is `w17ctl ci`.

type InitCmd

type InitCmd struct {
	// contains filtered or unexported fields
}

InitCmd is `w17ctl ci init`.

func (*InitCmd) Run

func (c *InitCmd) Run() error

type RemoveCmd

type RemoveCmd struct {
	LockPath string `name:"lock" placeholder:"PATH" default:"w17/lock.yaml" help:"Path to the lock file."`
	Console  string `` /* 176-byte string literal not displayed */
}

RemoveCmd is `w17ctl ci remove`.

func (*RemoveCmd) Run

func (c *RemoveCmd) Run() error

type ShowCmd

type ShowCmd struct {
	LockPath string `name:"lock" placeholder:"PATH" default:"w17/lock.yaml" help:"Path to the lock file."`
	Console  string `` /* 176-byte string literal not displayed */
}

ShowCmd is `w17ctl ci show`.

func (*ShowCmd) Run

func (c *ShowCmd) Run() error

type UpdateCmd

type UpdateCmd struct {
	// contains filtered or unexported fields
}

UpdateCmd is `w17ctl ci update`.

func (*UpdateCmd) Run

func (c *UpdateCmd) Run() error

Jump to

Keyboard shortcuts

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