Rename Repo Column to Name for Consistency · Entire

repo mirror list

The repo mirror list shows the repo name column as repo. To filter it, it looks like the command is entire repo mirror --repo, but should we rename the column and the filter to name so repo is not everywhere?

My Opinion: Keep both. Don't rename.

Reasons:

Alternative Suggestion:

If redundancy is an issue, consider adding a -R short alias (gh-style) instead of renaming. This approach is additive and avoids breaking anything.


Implementation Changes

  1. Looked at code in repo_mirror.go:26 for column REPO, and :575 for flag --repo filters.
  2. Decision made to:
    • Rename Column REPO to NAME (owner/repo) for clarity.
    • Change Flag --repo to --name for consistency in filtering.
    • Ensure that parseSortColumn maintains correct functionality with both --sort name and --sort "name (owner/repo)".
  3. Test Results:
    • Build successful; tests in TestRepoMirrorList* confirmed the changes work.
    • Linting passed without issues.

Command Updates

$ ~/wks/cli/cli/mise-tasks/dev/publish
Installing into: /Users/gtrrz-victor/go/bin
Installed: 'entire'
Installed: 'git-remote-entire'

Final Note