apply

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoToken = errors.NewSentinel(
	"skillup.no_token",
	"SKILLUP_TOKEN is not set",
)

ErrNoToken reports --push with no credential in the environment.

View Source
var ErrPushWithoutBranch = errors.NewSentinel(
	"skillup.push_without_branch",
	"--push needs --branch and --remote",
)

ErrPushWithoutBranch reports --push given with nothing to push to.

Functions

func NewCmdApply

func NewCmdApply(props *props.Props) *setup.Command

func RunApply

func RunApply(ctx context.Context, _ *props.Props, opts *ApplyOptions, _ []string) error

RunApply writes each segment's warranted version into its manifest, and optionally commits and pushes the result.

Writing is the default and the only thing that happens without being asked. Committing and pushing are opt-in so the common case — a developer bumping mid-change — leaves the edit in the working tree to land with the change that earned it.

Types

type ApplyOptions

type ApplyOptions struct {
	Path        string
	Commit      bool
	Push        bool
	Branch      string
	Remote      string
	Username    string
	Message     string
	AuthorName  string
	AuthorEmail string
}

Jump to

Keyboard shortcuts

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