stack

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownService = errors.New("unknown service")
	ErrNoProject      = errors.New("no project")
)

Functions

This section is empty.

Types

type DownCommand

type DownCommand struct {
	bus.Returns[bus.Void]

	Workspace string
	Project   string

	// Run every extension the hooks run without asking, and without recording
	// them as trusted
	Yes bool
}

func (DownCommand) MessageName

func (DownCommand) MessageName() string

type ExecCommand

type ExecCommand struct {
	bus.Returns[bus.Void]

	Workspace string
	Project   string
	Service   string
	Args      []string
}

func (ExecCommand) MessageName

func (ExecCommand) MessageName() string

type LogsQuery

type LogsQuery struct {
	bus.Returns[bus.Void]

	Workspace string
	Project   string
	Service   string
}

func (LogsQuery) MessageName

func (LogsQuery) MessageName() string

type Manager

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

Manager handles the commands that run a workspace or project's compose stack.

func NewManager

func NewManager(compose compose, tui tui, hooks hooks) *Manager

func (*Manager) Down

func (m *Manager) Down(ctx context.Context, cmd DownCommand) error

func (*Manager) ExecOrRun

func (m *Manager) ExecOrRun(ctx context.Context, cmd ExecCommand) error

func (*Manager) Logs

func (m *Manager) Logs(ctx context.Context, query LogsQuery) error

func (*Manager) ServiceChoices added in v0.20.0

func (m *Manager) ServiceChoices(ctx context.Context, _ ServiceChoicesQuery) ([]workspace.Choice, error)

func (*Manager) ShowComposeCommand

func (m *Manager) ShowComposeCommand(ctx context.Context, query ShowComposeCommandQuery) error

func (*Manager) ShowComposeConfig

func (m *Manager) ShowComposeConfig(ctx context.Context, query ShowComposeConfigQuery) error

func (*Manager) Up

func (m *Manager) Up(ctx context.Context, cmd UpCommand) error

type ServiceChoicesQuery added in v0.20.0

type ServiceChoicesQuery struct {
	bus.Returns[[]workspace.Choice]

	Workspace string
	Project   string
}

ServiceChoicesQuery lists the services in the project's compose file.

func (ServiceChoicesQuery) MessageName added in v0.20.0

func (ServiceChoicesQuery) MessageName() string

type ShowComposeCommandQuery

type ShowComposeCommandQuery struct {
	bus.Returns[bus.Void]

	Workspace string
	Project   string
}

func (ShowComposeCommandQuery) MessageName

func (ShowComposeCommandQuery) MessageName() string

type ShowComposeConfigQuery

type ShowComposeConfigQuery struct {
	bus.Returns[bus.Void]

	Workspace string
	Project   string
}

func (ShowComposeConfigQuery) MessageName

func (ShowComposeConfigQuery) MessageName() string

type UpCommand

type UpCommand struct {
	bus.Returns[bus.Void]

	Workspace string
	Project   string

	// Run every extension the hooks run without asking, and without recording
	// them as trusted
	Yes bool
}

func (UpCommand) MessageName

func (UpCommand) MessageName() string

Jump to

Keyboard shortcuts

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