CLI: Reorganize bump/restore into three subcommands each

Open
#790 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start by locating the CLI handlers for soroban contract restore and soroban contract bump, then inspect how their current mutually exclusive flags are defined. Done means each operation is represented by three clear subcommands—data, contract, and code—and bumping a contract also bumps its code.

Written by the indexing model from the issue text.

Description

cli
What problem does your feature solve?

Makes it clearer to the user what the options are when using the commands.

What would you like to see?

soroban contract restore/bump (data/contract/code)

Also have contract bumping also bump the code. This would prevent users from needing to do two actions when it's always the case that the contract's code should not expire before the contract.

What alternatives are there?

Keep using the two commands with less clear mutually exclusive flags.

Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.