refactor(cli): replace urfave/cli with cobra#3173
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## development #3173 +/- ##
==============================================
Coverage ? 51.83%
==============================================
Files ? 225
Lines ? 28549
Branches ? 0
==============================================
Hits ? 14797
Misses ? 12366
Partials ? 1386 |
|
Forgive me I'm still "out of the loop" for now, but what's the reason for changing cli framework? (I have no preference for either framework, so just being curious 😉) |
jimjbrettj
left a comment
There was a problem hiding this comment.
Had one comment on the issue you created and why its needed, but besides that all looks great! Really awesome job wth this
There was a problem hiding this comment.
Pulled the branch and double checked the entrypoint on Dockerfile.staging.
I tried running ./bin/gossamer --chain=westend --pprof.enabled but I'm getting an error on no key specified. The account key should be optional, since gossamer will create one if not specified. This is used for non-authority syncing nodes.
That isn't the current behaviour. It defaults to Let's default it to |
Oh is it? Yes let's default to alice for now and make the flag optional. |
It's done! |
|
Looks like something is failing with BABE when trying to run the node on this branch. |
eabd6a8 to
000b9b4
Compare
000b9b4 to
d8e62fb
Compare
It was an issue with the |
|
🎉 This PR is included in version 0.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Changes
urfave/cliwithcobraviperfor config managementsubstrateflagstomlconfig filebase-pathconfig.tomlis stored inbase-path/config/base-path/data/directorybase-pathcan be set in ENV asGSSMR_HOME./dot/tomlconfigto./configcommon.Rolestocommon.NetworkRoleConfigstructureTests
Since the changes affect the entire node, we'll have to make sure all the tests in the project are passing.
I have run the unit tests, integration tests and have made sure all the CI checks are passing.
To run a node:
Method 1
config.tomlby runningThis creates the working directory in the
base-pathwith the followingconfig.tomlatbase-path/configfor the specified chainbase-path/datadirectoryThen
config.tomlMethod 2
gossamer helpcommand to see all the supported flagsIssues
#3163
TODO:
tomldocs ( help needed )telemetry-urlroleTestStableNetworkRPCInvestigateTestStableNetworkRPC#3212Future Improvements:
datadirectory for the databases cli: config improvements for base-path #3211*config/Configand*dot/Config#1848syncservice Use separate peer config for sync service #3240Primary Reviewer
@timwu20 @edwardmack