Documentation
¶
Index ¶
- func Command(s *settings.Settings, streams term.Streams) *cobra.Command
- func ShipAll(ctx context.Context, s *settings.Settings, streams term.Streams, ...) error
- func ShipTargets(ctx context.Context, e *engine.Engine, streams term.Streams, ports []string, ...) ([]shipTarget, error)
- func WriteShipPlan(ctx context.Context, e *engine.Engine, out io.Writer, targets []shipTarget, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
shipCommand carries a change as far as --to says, from wherever it is now (the command-line UX second look's §6): a port, updated from master in a branch of its own, or a branch, resumed where it stands.
func ShipAll ¶
func ShipAll(ctx context.Context, s *settings.Settings, streams term.Streams, whole *view.BatchJSON, targets []shipTarget, stage engine.ShipStage, answered model.Answered, version author.VersionUpdate) error
shipAll carries each change on, each through its own stages, and says how the batch went by the batch exit rule (the command-line UX review's §10): 1 where none went through, 3 where some need a look. Each is carried to its check, queued, before any check is seen through, and each submitted as its check passes (decision 4), in the order they end: the checks run together, here within the providers' capacity where no serve leads, serve's side by side where it does (engine.SeeAllThrough), where they ran one at a time in input order, so a batch took the sum of its checks. A rerun follows a check still queued or running for the same files rather than starting another.
func ShipTargets ¶
func ShipTargets(ctx context.Context, e *engine.Engine, streams term.Streams, ports []string, where branchflags.BranchFlags) ([]shipTarget, error)
shipTargets are the changes the arguments name: each port, as the open branch changing it where one does, which ship resumes; else the branch the flags name, or the one checked out here.
func WriteShipPlan ¶
func WriteShipPlan(ctx context.Context, e *engine.Engine, out io.Writer, targets []shipTarget, stage engine.ShipStage)
writeShipPlan is ship's plan, a row a change: where it starts, and how far it goes; under a branch going on to its pull request, its submission as it stands, and what holds it, as submit --passing showed each (decision 2: one plan listing every branch with its holds).
Types ¶
This section is empty.