cli

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCmd

func NewRootCmd(version string) *cobra.Command

NewRootCmd creates the root bento command.

Types

type CheckpointEntry added in v0.1.42

type CheckpointEntry = registry.CheckpointEntry

CheckpointEntry re-export for this file (same type from registry package).

type SaveOptions added in v0.1.22

type SaveOptions struct {
	Dir                  string // absolute path to workspace root
	Message              string // checkpoint message
	Tag                  string // custom tag (empty = auto cp-N)
	SkipSecretScan       bool
	AllowMissingExternal bool
	Quiet                bool // suppress per-layer output (used by watch mode)
	ForceSave            bool // skip the unchanged-detection check (for pre-open backups)
}

SaveOptions configures a save operation. Used by both `bento save` and `bento watch`.

type SaveResult added in v0.1.22

type SaveResult struct {
	Tag     string // the tag assigned to this checkpoint (e.g. "cp-3")
	Digest  string // manifest digest
	Seq     int    // checkpoint sequence number
	Skipped bool   // true if save was elided because nothing changed
	Reason  string // human-readable reason when Skipped is true
	Hint    string // backend-specific restore hint (display variant, may contain secrets)
}

SaveResult holds the outcome of a save operation.

func ExecuteSave added in v0.1.22

func ExecuteSave(opts SaveOptions) (*SaveResult, error)

ExecuteSave performs a full save operation: scan, pack, build manifest, store. It acquires a file lock to prevent concurrent saves from corrupting the store. If all layer digests match the parent checkpoint, the save is skipped and SaveResult.Skipped is set to true.

Jump to

Keyboard shortcuts

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