shared

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirFlag

func DirFlag(c *cli.Command) string

func LoadConfig added in v0.0.5

func LoadConfig(ctx context.Context, logger *slog.Logger, workspaceDir string) (*workspace.Config, error)

func NewDirFlag

func NewDirFlag() *cli.StringFlag

func SaveConfig added in v0.0.5

func SaveConfig(ctx context.Context, logger *slog.Logger, workspaceDir string, cfg *workspace.Config) error

Types

type Resolution added in v0.0.7

type Resolution struct {
	Dir    string
	Config *workspace.Config
}

Resolution is a resolved CLI invocation: the workspace directory containing .bumper and its validated config.

func Resolve added in v0.0.7

func Resolve(ctx context.Context, logger *slog.Logger, rawDir string) (*Resolution, error)

Resolve is the single entry point from a CLI invocation to a resolved workspace directory and validated config. rawDir is the --dir flag value; empty means start the workspace search from the current directory.

func (*Resolution) Group added in v0.0.7

func (r *Resolution) Group(ctx context.Context, logger *slog.Logger, name string) (workspace.ReleaseGroup, error)

Group returns the release group selected by name, defaulting to the only group when exactly one is defined and name is empty.

Jump to

Keyboard shortcuts

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