author

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 ChecksumsCommand(s *settings.Settings, streams term.Streams) *cobra.Command

func EditCommand

func EditCommand(s *settings.Settings, streams term.Streams) *cobra.Command

func MoveCommand added in v0.7.0

func MoveCommand(s *settings.Settings, streams term.Streams) *cobra.Command

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

func RenameCommand(s *settings.Settings, streams term.Streams) *cobra.Command

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

func RevbumpCommand(s *settings.Settings, streams term.Streams) *cobra.Command

func UpdateCommand

func UpdateCommand(s *settings.Settings, streams term.Streams) *cobra.Command

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 {
	KeepOld, Shared, Obsolete, FollowMoves bool
	// HandEdit is update's --hand-edit alone: ship and bump never take it.
	HandEdit bool
	// Closes are --closes's Trac tickets, which the branch keeps for
	// tidy's Closes: trailer (the docs dig's I41).
	Closes []string
	Linked LinkedOptions
	NoNote bool
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL