sup
sup copied to clipboard
Add feature: naming and renaming
When starting a new project, sup should ask about the name, version, creator, license, etc. These values should be filled into Cargo.toml inside both runtime and node folder.
Likewise, an existing project should be rename-able with a simple command using this package manager. Something like sup rename foo should rename the bar project by replacing all invocations of bar with foo.
Sorry for the late~
When starting a new project, sup should ask about the name, version, creator, license, etc. These values should be filled into
Cargo.tomlinside both runtime and node folder.
Step-1
Here will be a ~/.sup/config.toml to handle this, it would be like:
[node]
registry = ""
authors = ["", ""]
license = ["", ""]
These will overwrite the matched info in crates in runtime and node.
Step-2
A set command, for example, we can run
$ sup set --version <version> --path <node-path>
to overwrite all versions.
Likewise, an existing project should be rename-able with a simple command using this package manager. Something like sup rename foo should rename the bar project by replacing all invocations of bar with foo.
This rename command is awesome as well, I'll implement it~
Thanks for your advice!!! The upgrade process will link to this issue~
Likewise, an existing project should be rename-able with a simple command using this package manager. Something like sup rename foo should rename the bar project by replacing all invocations of bar with foo.
This can be implemented but it is not a substrate registry operation, it's about cargo, wondering if it will make sup too complex?