Documentation
¶
Index ¶
- func Author(ctx context.Context, s *settings.Settings, streams term.Streams, ...) (branch model.Branch, update engine.Update, err error)
- func ChecksumsCommand(s *settings.Settings, streams term.Streams) *cobra.Command
- func EditCommand(s *settings.Settings, streams term.Streams) *cobra.Command
- func MoveCommand(s *settings.Settings, streams term.Streams) *cobra.Command
- func RenameCommand(s *settings.Settings, streams term.Streams) *cobra.Command
- func RevbumpCommand(s *settings.Settings, streams term.Streams) *cobra.Command
- func UpdateCommand(s *settings.Settings, streams term.Streams) *cobra.Command
- type LinkedOptions
- type VersionUpdate
- func (v *VersionUpdate) Flags(cmd *cobra.Command, s *settings.Settings)
- func (v VersionUpdate) Request(args []string, plan bool) (engine.UpdateRequest, error)
- func (v *VersionUpdate) StageFlags(cmd *cobra.Command)
- func (v VersionUpdate) StageReady() error
- func (v *VersionUpdate) Withdrawn(cmd *cobra.Command)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Author ¶
func Author(ctx context.Context, s *settings.Settings, streams term.Streams, where branchflags.BranchChoice, work engine.Work, request engine.UpdateRequest, linked LinkedOptions) (branch model.Branch, update engine.Update, err error)
author finds the branch, makes the edit, and reports it.
func ChecksumsCommand ¶
func MoveCommand ¶ added in v0.7.0
MoveCommand moves a port to another category's directory, keeping its name: field testing ran git mv and edited categories by hand, which tidy took as a hand edit (2026-10-29).
func RenameCommand ¶ added in v0.7.0
RenameCommand renames a port as MacPorts does, an obsolete stub left at its old name (the person's "I agree we add a `rename` action to Dockhand.", 2026-10-29).
func RevbumpCommand ¶
Types ¶
type LinkedOptions ¶
type LinkedOptions struct {
Revbump bool
Except []string
// goesOn is ship's: the edit goes on to its commit and on, so no
// next step is said after it.
GoesOn bool
On []string
Build string
TestedBinaries, TestedVariants bool
// WithdrawBinaries and WithdrawVariants are --tested-binaries=false and
// --tested-variants=false, which remove a kept statement (#153).
WithdrawBinaries, WithdrawVariants bool
// tests is the check's --tests; types and draft the submission's
// --type and --draft (the second look's §6: bump lacked them).
Tests string
Types []string
Draft bool
Unattended bool
// title, note, and skipNotification are submit's, passed on; noteSet
// is whether --note or --no-note was given. bump took none, so
// a test's pull request couldn't be marked one (the rc6 full stage, B2).
Title string
Note string
NoteSet bool
SkipNotification bool
}
linkedOptions are the edit's --revbump-dependents and --except, and what ship and bump pass on to the stages after it: where to check, the tests, and the pull request's words. unattended is bump's and ship's with --yes or no terminal: nobody looks before the submission, so it holds what serve's would.
type VersionUpdate ¶
type VersionUpdate struct {
versionUpdate is what update and bump share: how the edit is made, and what going on to the pull request takes.
func (*VersionUpdate) Flags ¶
func (v *VersionUpdate) Flags(cmd *cobra.Command, s *settings.Settings)
flags adds the edit's flags, which update, ship, and bump share, those the settings carry with them: --source was update's alone, so a one-off source meant leaving ship (Codex's workflow review of 1caa6c3d, finding 9).
func (VersionUpdate) Request ¶
func (v VersionUpdate) Request(args []string, plan bool) (engine.UpdateRequest, error)
request is the update of the port args name, to the version they name or the newest.
func (*VersionUpdate) StageFlags ¶
func (v *VersionUpdate) StageFlags(cmd *cobra.Command)
stageFlags adds the flags of the stages after the edit, defined once, which ship and bump share: where to check, and the pull request's.
func (VersionUpdate) StageReady ¶
func (v VersionUpdate) StageReady() error
stageReady refuses what the later stages' flags can't take before anything is done: a misspelled --tests.
func (*VersionUpdate) Withdrawn ¶ added in v0.8.0
func (v *VersionUpdate) Withdrawn(cmd *cobra.Command)
Withdrawn reads --tested-binaries=false and --tested-variants=false, said rather than left out, into the update's request.