cmd

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AutoDetectMarker = "auto"

Variables

This section is empty.

Functions

func Execute

func Execute()

func GetFilesToProcess

func GetFilesToProcess(cfg *config.Config) ([]string, error)

GetFilesToProcess returns the list of files to process based on flags and config

func IsFIDO2Available added in v1.5.0

func IsFIDO2Available() bool

IsFIDO2Available checks if a FIDO2 device is connected

func IsFIDO2InitEnabled added in v1.5.0

func IsFIDO2InitEnabled() bool

IsFIDO2InitEnabled returns true if FIDO2 init is enabled

func IsYubiKeyAvailable added in v1.5.0

func IsYubiKeyAvailable() bool

IsYubiKeyAvailable checks if a YubiKey is connected

func LoadDecryptionIdentity added in v1.5.0

func LoadDecryptionIdentity(cfg *config.Config, ageKeyFile, sshKeyFile string, useYubiKey, useFIDO2 bool) ([]age.Identity, error)

LoadDecryptionIdentity loads a single identity that can decrypt a store entry. Priority: age > ssh > fido2 > yubikey Only loads identity types that are present in the store.

func ResolveTarget added in v1.8.0

func ResolveTarget(target string) (configPath string, singleFile string, err error)

ResolveTarget resolves a target path (file or folder) to a config path and optional single file. For a file: searches upward from the file's directory to find .confcrypt.yml For a folder: the folder must contain .confcrypt.yml directly (no upward search) Returns: configPath, singleFile (empty if folder/all files), error

Types

type FileWithFormat added in v1.10.0

type FileWithFormat struct {
	Path   string
	Format string
}

FileWithFormat represents a file to process along with its format override

func GetFilesToProcessWithFormat added in v1.10.0

func GetFilesToProcessWithFormat(cfg *config.Config) ([]FileWithFormat, error)

GetFilesToProcessWithFormat returns files with their format overrides

Jump to

Keyboard shortcuts

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