soroban-cli icon indicating copy to clipboard operation
soroban-cli copied to clipboard

CLI: Reorganize bump/restore into three subcommands each

Open willemneal opened this issue 2 years ago • 2 comments
trafficstars

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.

willemneal avatar Jul 21 '23 14:07 willemneal

Latest changes in main no longer have bump as a command, so this would apply to the restore command

stellarsaur avatar Nov 24 '23 22:11 stellarsaur

The bump subcommand was renamed to extend, so I believe this issue still applies to both.

leighmcculloch avatar Nov 25 '23 04:11 leighmcculloch