Documentation
¶
Overview ¶
Package cmdumbrella implements the `wb umbrella` command tree (`show`, `close`).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloseDocument ¶
type CloseDocument struct {
Ref string `json:"ref"`
Registry string `json:"registry"`
ID string `json:"id"`
Link string `json:"link"`
State umbrella.State `json:"state"`
Applied bool `json:"applied"`
Closed bool `json:"closed"`
Refused bool `json:"refused,omitempty"`
Reason string `json:"reason,omitempty"`
Summary string `json:"summary,omitempty"`
Members []umbrella.Member `json:"members"`
Blocking []umbrella.Member `json:"blocking,omitempty"`
ApplyCommand string `json:"apply_command,omitempty"`
}
CloseDocument is the JSON envelope emitted by `wb umbrella close`.
type Dependencies ¶
type Dependencies struct {
DefaultRegistry func() (string, error)
Providers *umbrella.Registry
Members func(projectsRoot string, ref umbrella.Ref) ([]umbrella.Member, error)
}
Dependencies injects provider, config, and WB member lookup seams.
type ShowDocument ¶
type ShowDocument struct {
Ref string `json:"ref"`
Registry string `json:"registry"`
ID string `json:"id"`
Link string `json:"link"`
State umbrella.State `json:"state"`
Members []umbrella.Member `json:"members"`
ReadyToClose bool `json:"ready_to_close"`
CloseCommand string `json:"close_command,omitempty"`
}
ShowDocument is the JSON envelope emitted by `wb umbrella show`.