yadm
yadm copied to clipboard
Usage help does not consider paths provided on commandline
Describe the bug
Yadm does not list the actual file paths if updated paths are provided in the CLI.
To reproduce
❯ yadm --yadm-dir /etc/yadm --yadm-data /etc/yadm
Usage: yadm <command> [options...]
Manage dotfiles maintained in a Git repository. Manage alternate files
for specific systems or hosts. Encrypt/decrypt private files.
Git Commands:
Any Git command or alias can be used as a <command>. It will operate
on yadm's repository and files in the work tree (usually $HOME).
Commands:
yadm init [-f] - Initialize an empty repository
yadm clone <url> [-f] - Clone an existing repository
yadm config <name> <value> - Configure a setting
yadm list [-a] - List tracked files
yadm alt - Create links for alternates
yadm bootstrap - Execute $HOME/.config/yadm/bootstrap
yadm encrypt - Encrypt files
yadm decrypt [-l] - Decrypt files
yadm perms - Fix perms for private files
yadm enter [COMMAND] - Run sub-shell with GIT variables set
yadm git-crypt [OPTIONS] - Run git-crypt commands for the yadm repo
yadm transcrypt [OPTIONS] - Run transcrypt commands for the yadm repo
Files:
$HOME/.config/yadm/config - yadm's configuration file
$HOME/.config/yadm/encrypt - List of globs to encrypt/decrypt
$HOME/.config/yadm/bootstrap - Script run via: yadm bootstrap
$HOME/.local/share/yadm/repo.git - yadm's Git repository
$HOME/.local/share/yadm/archive - Encrypted data stored here
Use "man yadm" for complete documentation.
Expected behavior
The file paths show the actual paths after CLI modifications.
Environment
- Operating system: arch
- Version yadm: 3.1.1
- Version Git: 2.33.0
This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
@TheLocehiliosan maybe add a "verified" label or something to prevent the stale-bot from jumping in repeatedly on a long-term issue ;)