Skip to content

Conversation

@riemannulus
Copy link
Contributor

Before:

  • mitosisd add-genesis-validator

After:

  • mitosisd genesis add-validator

For consistency

- Replaced `add-genesis-validator` command with `add-validator` for consistency across the codebase.
- Updated initialization scripts in `init.sh` and `setup.sh` to reflect the new command structure.
- Enhanced the `initRootCmd` function to properly integrate the updated genesis validator command, ensuring seamless command execution during initialization.

These changes improve the clarity and usability of the command-line interface for managing genesis validators in the Mitosis chain.
@riemannulus riemannulus self-assigned this Jul 31, 2025
Copilot AI review requested due to automatic review settings July 31, 2025 19:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the genesis validator command structure for consistency, moving from a top-level command to a subcommand under the genesis group.

  • Renamed command from mitosisd add-genesis-validator to mitosisd genesis add-validator
  • Updated command structure to group genesis-related commands together
  • Updated all references in setup scripts to use the new command syntax

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
x/evmvalidator/client/cli/genesis.go Updated command name and example usage in help text
cmd/mitosisd/cmd/commands.go Moved command from root level to genesis subcommand group
infra/localnet/mitosisd/setup.sh Updated script to use new command syntax
infra/devnet/mitosisd/init.sh Updated script to use new command syntax

@codecov
Copy link

codecov bot commented Jul 31, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
x/evmvalidator/client/cli/genesis.go 0.00% 2 Missing ⚠️
cmd/mitosisd/cmd/commands.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@riemannulus riemannulus merged commit ae926f8 into main Aug 1, 2025
9 of 10 checks passed
@riemannulus riemannulus deleted the feat/mitosisd/unify-genesis-cli branch August 1, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants