Skip to main content

Module cmd

Module cmd 

Source
Expand description

Command implementations.

Each Command variant in cli.rs calls one of these.

Functions§

absorb
Manually absorb a single target file back into source.
apply
diff
yui diff [--icons MODE] [--no-color] — for every drifted entry (link or render), print a unified diff to stdout.
doctor
gc_backup
yui gc-backup [--older-than DUR] [--dry-run] — prune snapshots under $DOTFILES/.yui/backup/.
hooks_list
yui hooks list — show every configured hook + its last-run state.
hooks_run
yui hooks run [<name>] [--force] — run a single hook (or every hook) on demand. --force bypasses the when_run state check; the when filter (yui.os == 'macos' etc.) is always honored.
init
link
list
Show the resolved src→dst mappings for the current source repo.
render
secret_encrypt
yui secret encrypt <path> [--force] [--rm-plaintext] — encrypt a plaintext file to every recipient in [secrets] recipients and write the ciphertext alongside as <path>.age.
secret_init
yui secret init [--comment TEXT] — generate an age X25519 keypair on this machine, write the secret to the configured identity path, and append the public key to $DOTFILES/config.toml [secrets] recipients.
secret_store
yui secret store [--force] — push the X25519 identity at [secrets].identity into the configured [secrets.vault]. Run on a machine that already has the identity; the new machine then recovers it via yui secret unlock.
secret_unlock
yui secret unlock — fetch the X25519 identity from the configured [secrets.vault] and write it to [secrets].identity. The vault provider’s CLI (bw / op) handles auth — yui inherits whatever factor that CLI is configured to require.
status
Show every src→dst pair’s drift state against the current host.
unlink
unmanaged
yui unmanaged [--icons MODE] [--no-color] — list source files that no [[mount.entry]] claims.
update
yui update [--dry-run] — pull source repo and re-apply.