TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
4.94k stars 178 forks source link

Usage help does not consider paths provided on commandline #376

Open xeruf opened 2 years ago

xeruf commented 2 years ago

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

github-actions[bot] commented 2 years ago

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.

github-actions[bot] commented 2 years ago

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.

xeruf commented 2 years ago

@TheLocehiliosan maybe add a "verified" label or something to prevent the stale-bot from jumping in repeatedly on a long-term issue ;)