Skip to content

Rename contract alias remove to rm - #2728

Open
fnando wants to merge 3 commits into
mainfrom
contract-alias-rm
Open

fnando wants to merge 3 commits into
mainfrom
contract-alias-rm

Conversation

@fnando

@fnando fnando commented Sep 17, 2026

Copy link
Copy Markdown
Member

What

Renames the stellar contract alias remove subcommand to stellar contract alias rm, with remove kept as a visible alias for backwards compatibility.

Why

Other CLI commands that delete things use rm as the canonical subcommand (stellar keys rm, stellar network rm); contract alias was the odd one out with remove. This makes the naming consistent while keeping the old remove spelling working.

Copilot AI balanced review requested due to automatic review settings September 17, 2026 17:42
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Sep 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Only a non-blocking test-name nit remains; no approval-blocking issues were identified.

Pull request overview

Renames stellar contract alias remove to canonical rm while retaining remove as a compatibility alias.

Changes:

  • Renames command implementation and wiring.
  • Updates help documentation.
  • Adds integration coverage for both spellings.
File summaries
File Summary
FULL_HELP_DOCS.md Documents rm and its remove alias.
cmd/soroban-cli/src/commands/contract/alias/rm.rs Implements alias removal.
cmd/soroban-cli/src/commands/contract/alias.rs Registers the canonical command and compatibility alias.
cmd/crates/soroban-test/tests/it/config.rs Tests both command spellings; minor test-name nit noted.
Review details
  • Files reviewed: 3/4 changed files
  • Comments generated: 1
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cmd/crates/soroban-test/tests/it/config.rs Outdated
@fnando fnando self-assigned this Sep 17, 2026
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Sep 17, 2026
@fnando
fnando requested review from a team and leighmcculloch September 17, 2026 18:09
Copilot AI review requested due to automatic review settings September 17, 2026 18:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues were identified.

Review details
  • Files reviewed: 3/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

Copilot AI review requested due to automatic review settings September 18, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A runtime diagnostic still recommends the legacy remove spelling instead of canonical rm.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 3/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

pub enum Cmd {
/// Remove contract alias
Remove(remove::Cmd),
#[command(visible_alias = "remove")]
@willemneal

Copy link
Copy Markdown
Contributor

@fnando and ls too?

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

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

4 participants