cmdruntime

package
v0.10.207 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package cmdruntime contains shared command runtime helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath(opts *root.Options) (string, error)

ConfigPath resolves the active config path from root options.

func MapRunError

func MapRunError(err error) error

MapRunError maps lower-level runtime errors to CLI exit-code wrappers.

func MissingResponderError

func MissingResponderError() error

MissingResponderError reports that a command runtime cannot execute response runs.

func ResolveRepoRoot added in v0.10.200

func ResolveRepoRoot(ctx context.Context) (string, error)

ResolveRepoRoot returns the current invocation worktree root or reporoot.ErrUnavailable when the command is not running inside a Git worktree.

func RetentionPolicyFromConfig

func RetentionPolicyFromConfig(retention config.RetentionConfig) datalifecycle.RetentionPolicy

RetentionPolicyFromConfig maps config retention settings to runtime policy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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