Skip to content

refactor(cli): finish clean->remove rename and accept positional name - #229

Merged
zheli merged 1 commit into
mainfrom
add-clean-alias-remove
Jul 8, 2026
Merged

refactor(cli): finish clean->remove rename and accept positional name#229
zheli merged 1 commit into
mainfrom
add-clean-alias-remove

Conversation

@zheli

@zheli zheli commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #227 (merged), which renamed the localnet clean command to remove (keeping clean as an alias). This PR completes the rename and improves the UX.

What changed

  • Symbol + comment rename: renamed all remaining Clean/clean symbols, doc comments, and user-facing strings to Remove/remove across internal/localnet, internal/docker, internal/registry, internal/splice, and internal/cli/localnet.
  • Positional instance name: localnet remove <name> now accepts the instance name as a positional argument (mirroring up/down/stop/start). --name is still accepted for backward compatibility; passing both is an error, and --all remains mutually exclusive with naming a single instance.
  • Telemetry: added remove to noticeOperationalVerbs (kept clean since the notice gate reads the raw typed token).
  • Docs: executable examples switched to the positional form; docs/changes-from-proposal.md documents the positional-name behavior change.

Verification

  • go build ./..., make lint (0 issues), make test all green (including skills-lint).

Complete the clean -> remove rename by renaming all Clean/clean symbols
and comments to Remove/remove, and make the remove command accept the
instance name positionally (localnet remove <name>) like the other
lifecycle verbs, while keeping --name for backward compatibility and
--all mutually exclusive with naming a single instance.
@zheli
zheli force-pushed the add-clean-alias-remove branch from 07b54a1 to 8a8ae19 Compare July 8, 2026 07:17
@zheli
zheli merged commit 4f13fef into main Jul 8, 2026
6 checks passed
@zheli
zheli deleted the add-clean-alias-remove branch July 8, 2026 07:24
zheli added a commit that referenced this pull request Jul 11, 2026
M1-INST-003 still grepped for clean in --help after #227/#229 renamed
the visible command to remove. Check remove in help and keep clean as
an alias smoke test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant