Skip to content

refactor!: rename CLI tools to short names (duynhctl, duynhdb, duynhenv, duynhpass)#45

Merged
duynhne merged 1 commit into
mainfrom
feat/short-cli-names
Jun 12, 2026
Merged

refactor!: rename CLI tools to short names (duynhctl, duynhdb, duynhenv, duynhpass)#45
duynhne merged 1 commit into
mainfrom
feat/short-cli-names

Conversation

@duynhne

@duynhne duynhne commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

What

Mechanical rename of the four CLI entry points to shorter names:

Old New
duynhlab-ctl duynhctl
duynhlab-db-setup duynhdb
duynhlab-gen-env duynhenv
duynhlab-gen-password duynhpass

⚠️ BREAKING — no compat symlinks. After upgrading, the old command names are gone; any operator script calling them must switch. Decided to cut clean since the first release shipped only days ago.

Unchanged: package name duynhlab, /opt/duynhlab, /etc/duynhlab, systemd units/targets (duynhlab-*), user/group, support-bundle prefix (duynhlab-support-*), env vars.

Scope

  • git mv of the 5 files under packages/common/scripts/ (history preserved; bash-completion file + _duynhctl function renamed too)
  • spec: %install /usr/bin symlink loop, completion install path, %files, %description, post-install hints
  • scripts/tests: stage-all.sh, publish-yum-repo.sh, test-install.sh, test-integration.sh, scriptlets, password-generator.sh internals (GEN_PASS/GEN_ENV paths)
  • docs: README, AGENTS.md, docs/001–006

Verification

  • git grep for any old name → zero hits
  • bash -n all scripts; completion sources and defines _duynhctl
  • make build + make test-install PASSED end-to-end: new /usr/bin symlinks resolved, duynhctl list/ports/support-bundle work out-of-box, secret-versioning idempotency + version.log + no-secret-leak assertions all green
  • test-integration runs in this PR's CI

…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).
@duynhne
duynhne merged commit 263a04b into main Jun 12, 2026
2 checks passed
@duynhne
duynhne deleted the feat/short-cli-names branch June 12, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant