cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDirect

func AddDirect(v *vault.Vault, absPath string, isDir bool, alias string, recursive bool, writable bool, w io.Writer) error

AddDirect registers a single file or directory.

func Execute

func Execute()

func LockEntry added in v1.1.0

func LockEntry(v *vault.Vault, id string, w io.Writer) error

LockEntry marks the identified entry as read-only (writable=false).

func PickFromVault

func PickFromVault(v *vault.Vault, vaultRoot string, picker PickerFunc, w io.Writer) error

PickFromVault runs the interactive pick flow: expand current entries, show picker, compact result, replace vault entries.

func UnlockEntry added in v1.1.0

func UnlockEntry(v *vault.Vault, id string, w io.Writer) error

UnlockEntry marks the identified entry as read-write (writable=true).

Types

type PickerFunc

type PickerFunc func(root string, preSelected map[string]bool, preWritable map[string]bool) (tui.PickerResult, error)

PickerFunc is the signature for launching the TUI file picker.

Jump to

Keyboard shortcuts

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