Documentation
¶
Index ¶
- Variables
- type DownCommand
- type ExecCommand
- type LogsQuery
- type Manager
- func (m *Manager) Down(ctx context.Context, cmd DownCommand) error
- func (m *Manager) ExecOrRun(ctx context.Context, cmd ExecCommand) error
- func (m *Manager) Logs(ctx context.Context, query LogsQuery) error
- func (m *Manager) ServiceChoices(ctx context.Context, _ ServiceChoicesQuery) ([]workspace.Choice, error)
- func (m *Manager) ShowComposeCommand(ctx context.Context, query ShowComposeCommandQuery) error
- func (m *Manager) ShowComposeConfig(ctx context.Context, query ShowComposeConfigQuery) error
- func (m *Manager) Up(ctx context.Context, cmd UpCommand) error
- type ServiceChoicesQuery
- type ShowComposeCommandQuery
- type ShowComposeConfigQuery
- type UpCommand
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 ¶
func (LogsQuery) MessageName ¶
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) ServiceChoices ¶ added in v0.20.0
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
type ServiceChoicesQuery ¶ added in v0.20.0
ServiceChoicesQuery lists the services in the project's compose file.
func (ServiceChoicesQuery) MessageName ¶ added in v0.20.0
func (ServiceChoicesQuery) MessageName() string
type ShowComposeCommandQuery ¶
func (ShowComposeCommandQuery) MessageName ¶
func (ShowComposeCommandQuery) MessageName() string
type ShowComposeConfigQuery ¶
func (ShowComposeConfigQuery) MessageName ¶
func (ShowComposeConfigQuery) MessageName() string
Click to show internal directories.
Click to hide internal directories.