Documentation
¶
Overview ¶
Package cli turns a scaffold service or stack into a small command-line application.
The package intentionally accepts the core scaffold.Service interface. Plain services can be started, stopped, and used with the generated commands. Stacks expose richer commands because they can provide environment variables, endpoints, summaries, running-state discovery, and Docker resource discovery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
type CommandProvider ¶
type CommandProvider interface {
CLICommands() []Command
}
type Option ¶
type Option func(*App)
func WithCommand ¶
func WithCommands ¶
func WithDescription ¶
func WithEnvFile ¶
func WithTimeout ¶
type ServiceStatus ¶
type StatusReport ¶
type StatusReport struct {
Name string
Known bool
Running bool
Services []ServiceStatus
Resources scaffold.ResourceStatus
}
Click to show internal directories.
Click to hide internal directories.