Skip to content

Conversation

@mohamedfawas
Copy link
Contributor

Fixes #3046

Make thv start the canonical command while keeping thv restart as a backwards-compatible alias.

What I changed

  • CLI: cmd/thv/app/restart.go — changed Use to "start" and added Aliases: []string{"restart"}. The existing RunE logic is unchanged.
  • Tests: updated test/e2e/restart_zombie_test.go to use thv start.
  • Docs: renamed/updated docs to prefer thv start (docs/cli/thv_start.md, docs/cli/thv.md, docs/arch/*).

What I did NOT change

  • docs/proposals/THV-1681-groups-in-registry.md — left untouched as it is a design proposal and out of scope for this CLI rename. Happy to update it if maintainers prefer.

Checklist for reviewers

  • Behaviour unchanged (RunE body unchanged)
  • thv restart still works as an alias
  • Docs updated to prefer thv start
  • Tests updated accordingly

Local checks I ran

  • go test ./cmd/thv/...
  • go test ./test/e2e -run TestRestartZombie

Make `thv start` the canonical CLI command while preserving
`thv restart` as a backward-compatible alias.

Rename the CLI documentation from `thv_restart.md` to `thv_start.md`
to match the canonical command name.

The existing implementation and internal identifiers (restartCmd,
restart flags, and file name) are intentionally unchanged to minimize
churn and avoid surprising downstream contributors.

Behavior is unchanged; only the command name, help text, and docs
are updated.

Fixes stacklok#3046

Signed-off-by: mohamedfawas <[email protected]>
Update the test to search for 'thv start' in the process list instead of 'thv restart'.

Signed-off-by: mohamedfawas <[email protected]>
…tart' alias

- Rename thv_restart -> thv_start
- Update usage examples to prefer 'thv start'
- Add note that 'thv restart' remains supported as an alias

Signed-off-by: mohamedfawas <[email protected]>
@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Dec 23, 2025
@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.14%. Comparing base (4b3fd00) to head (08d80d4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3151   +/-   ##
=======================================
  Coverage   57.14%   57.14%           
=======================================
  Files         341      341           
  Lines       34053    34053           
=======================================
  Hits        19459    19459           
  Misses      12985    12985           
  Partials     1609     1609           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change thv restart to thv start

1 participant