Skip to content

Comments

demo - JSONize cobra arguments#2747

Closed
Tonix517 wants to merge 1 commit intomainfrom
tonyz/cmd_flag_jsonize
Closed

demo - JSONize cobra arguments#2747
Tonix517 wants to merge 1 commit intomainfrom
tonyz/cmd_flag_jsonize

Conversation

@Tonix517
Copy link

As a quick PR demo to show how cobra arguments configs can be moved to JSON files.

Pros

  • cmd/*.go can be cleaner
  • Easier cobra argument configuration

Cons

  • extra runtime cost at command initialization (JSON ops)
  • some more complex argument logics, like shared args, conditional arguments are not directly supported

@github-project-automation github-project-automation bot moved this to Backlog 🗄️ in avalanchego Apr 16, 2025
@Tonix517 Tonix517 closed this Jun 3, 2025
@github-project-automation github-project-automation bot moved this from Backlog 🧊 to Done 🎉 in avalanchego Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant