refactor!: rename CLI tools to short names (duynhctl, duynhdb, duynhenv, duynhpass)#45
Merged
Conversation
…nv, duynhpass) BREAKING CHANGE: the long command names are gone — no compat symlinks: duynhlab-ctl -> duynhctl duynhlab-db-setup -> duynhdb duynhlab-gen-env -> duynhenv duynhlab-gen-password -> duynhpass After upgrading the RPM, scripts that call the old names must switch to the new ones. Everything else keeps the duynhlab name: the package, /opt/duynhlab, /etc/duynhlab, systemd units/targets, user/group, and the support bundle prefix. Mechanical rename across spec (%install symlinks, %files, hints), scripts, tests, bash completion (file + function), and docs. Verified: make build + test-install PASSED (new /usr/bin symlinks, duynhctl/support-bundle, secret-versioning assertions all green).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Mechanical rename of the four CLI entry points to shorter names:
duynhlab-ctlduynhctlduynhlab-db-setupduynhdbduynhlab-gen-envduynhenvduynhlab-gen-passwordduynhpassUnchanged: package name
duynhlab,/opt/duynhlab,/etc/duynhlab, systemd units/targets (duynhlab-*), user/group, support-bundle prefix (duynhlab-support-*), env vars.Scope
git mvof the 5 files underpackages/common/scripts/(history preserved; bash-completion file +_duynhctlfunction renamed too)%install/usr/binsymlink loop, completion install path,%files,%description, post-install hintsstage-all.sh,publish-yum-repo.sh,test-install.sh,test-integration.sh, scriptlets,password-generator.shinternals (GEN_PASS/GEN_ENVpaths)docs/001–006Verification
git grepfor any old name → zero hitsbash -nall scripts; completion sources and defines_duynhctlmake build+make test-installPASSED end-to-end: new/usr/binsymlinks resolved,duynhctl list/ports/support-bundlework out-of-box, secret-versioning idempotency + version.log + no-secret-leak assertions all green