Documentation
¶
Index ¶
- func AddDirect(v *vault.Vault, absPath string, isDir bool, alias string, recursive bool, ...) error
- func Execute()
- func LockEntry(v *vault.Vault, id string, w io.Writer) error
- func PickFromVault(v *vault.Vault, vaultRoot string, picker PickerFunc, w io.Writer) error
- func UnlockEntry(v *vault.Vault, id string, w io.Writer) error
- type PickerFunc
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 LockEntry ¶ added in v1.1.0
LockEntry marks the identified entry as read-only (writable=false).
func PickFromVault ¶
PickFromVault runs the interactive pick flow: expand current entries, show picker, compact result, replace vault entries.
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.
Click to show internal directories.
Click to hide internal directories.