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

Proposal: Rename `init` to `new`.

Open deuszx opened this issue 2 years ago • 1 comments

I propose renaming init command to new. There are two reasons for this that come to my mind:

  1. Similarity with cargo contract -- it uses new for generating starting package/template for the project.
  2. Sometimes, users may already have a working smart contract that they wish to deploy using swanky-cli. It's currently impossible to "just" init a project - i.e. generate swanky config file. This would match the functionality of git init as well.

I can do the work, just wanted to ask for your opinions first.

deuszx avatar Dec 12 '22 14:12 deuszx

I agree. Another reason is we also have swanky contract new command, so this would be more consistent. Please proceed with the PR 👍

codespool avatar Dec 14 '22 14:12 codespool