Skip to content

Fixed command#104

Merged
a-ok123 merged 3 commits intomasterfrom
fix-init-cmd
Jul 25, 2025
Merged

Fixed command#104
a-ok123 merged 3 commits intomasterfrom
fix-init-cmd

Conversation

@a-ok123
Copy link
Contributor

@a-ok123 a-ok123 commented Jul 24, 2025

No description provided.

@a-ok123 a-ok123 requested a review from Copilot July 25, 2025 15:30

This comment was marked as outdated.

@a-ok123 a-ok123 requested a review from Copilot July 25, 2025 19:08
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 enhances the initialization command with comprehensive validation and testing infrastructure. The changes improve robustness by adding input validation for various configuration parameters and creating test scripts to verify the validation functionality.

  • Adds extensive validation for keyring backends, key names, IP addresses, GRPC addresses, and ports
  • Introduces new command-line flags for non-interactive configuration
  • Creates test scripts for both interactive and non-interactive validation scenarios

Reviewed Changes

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

File Description
test_interactive_validation.sh Test script for manual validation of interactive mode prompts
test_init_validation.sh Automated test script for init command validation with various invalid inputs
supernode/cmd/init.go Core initialization command with added validation functions and new flags
go.mod Moves survey dependency from indirect to direct

@a-ok123 a-ok123 merged commit 2e6abac into master Jul 25, 2025
7 checks passed
@mateeullahmalik mateeullahmalik deleted the fix-init-cmd branch December 15, 2025 08:02
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.

2 participants