Conversation
cmd/tendermint/commands/replay.go
Outdated
| ) | ||
|
|
||
| var replayCmd = &cobra.Command{ | ||
| Use: "replay", |
cmd/tendermint/commands/replay.go
Outdated
| } | ||
|
|
||
| var replayConsoleCmd = &cobra.Command{ | ||
| Use: "replay_console", |
cmd/tendermint/commands/root.go
Outdated
| // parse flags | ||
|
|
||
| // configuration options | ||
| RootCmd.PersistentFlags().StringVar(&moniker, "moniker", config.GetString("moniker"), "Node Name") |
There was a problem hiding this comment.
Correct me if I am wrong, but all these flags belong to runNodeCmd and should be moved there. Except maybe log_level. Can we do that?
cmd/tendermint/commands/run_node.go
Outdated
|
|
||
| //flags | ||
| var ( | ||
| printHelp bool |
50a10a0 to
ec29ca5
Compare
Codecov Report
@@ Coverage Diff @@
## develop #419 +/- ##
=========================================
- Coverage 52.37% 52% -0.37%
=========================================
Files 44 44
Lines 4926 4926
=========================================
- Hits 2580 2562 -18
- Misses 2130 2142 +12
- Partials 216 222 +6Continue to review full report at Codecov.
|
|
Add use of Viper to replace config as a part of this PR? |
|
I think the go-config -> viper should be a separate pull request. Cobra alone cleans up the cli. Changing the config file, doesn't just involve changing the cli, it means changing every call to It's a big piece of work. Maybe get cobra/viper in basecoin first, then go for viper in tendermint core. |
|
P.S. It looks like you need to rebase on develop again... |
|
Thanks Frey, I will make a separate PR off of cli_cobra branch |
b687d63 to
c9acae8
Compare
glide.yaml
Outdated
| @@ -1,4 +1,4 @@ | |||
| package: github.com/tendermint/tendermint | |||
| eackage: github.com/tendermint/tendermint | |||
As of #419, we now use Go 1.20 on the `v0.37.x` branch. This is already up-to-date on the `v0.37.x` branch itself: https://github.com/cometbft/cometbft/tree/v0.37.x#minimum-requirements --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments
* Update to use Go 1.20 (tendermint#405) * Bump minimum Go version to 1.20 in go.mod Signed-off-by: Thane Thomson <connect@thanethomson.com> * Bump minimum Go version in CI/test infra Signed-off-by: Thane Thomson <connect@thanethomson.com> * Bump Go version in docs Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add changelog entry Signed-off-by: Thane Thomson <connect@thanethomson.com> * Ignore lint Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix math/rand usages in tests Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix lint: use local random source in test Signed-off-by: Thane Thomson <connect@thanethomson.com> * Rename variable for clarity Signed-off-by: Thane Thomson <connect@thanethomson.com> * ci: Bump version of golangci-lint to latest Signed-off-by: Thane Thomson <connect@thanethomson.com> --------- Signed-off-by: Thane Thomson <connect@thanethomson.com> (cherry picked from commit 200784a) # Conflicts: # .github/workflows/e2e-nightly-37x.yml # README.md # libs/rand/random.go # test/fuzz/README.md # test/fuzz/p2p/secret_connection/read_write.go # test/fuzz/tests/mempool_test.go # test/fuzz/tests/rpc_jsonrpc_server_test.go * Resolve conflicts Signed-off-by: Thane Thomson <connect@thanethomson.com> * Remove use of deprecated global random seed Signed-off-by: Thane Thomson <connect@thanethomson.com> * Attempt to appease linter Signed-off-by: Thane Thomson <connect@thanethomson.com> * Attempt 2 to appease linter Signed-off-by: Thane Thomson <connect@thanethomson.com> --------- Signed-off-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: Thane Thomson <connect@thanethomson.com>
closes #312
replaced internal CLI system with Cobra