Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): initial configuration options #182

Closed
wants to merge 1 commit into from

Conversation

greg-szabo
Copy link
Member

Partially resolves #178 and prepares work for #134.

The first commit introduces the Args structure for storing the configuration, read/write methods for a configuration file, and options for parsing the command line. It implements getting a private key and the voting power from the configuration file or the command line. Temporarily, the "index" parameter is kept. This assures that only a little of the previous codebase had to be changed. I will add the parameters to the existing codebase in a subsequent commit.

This PR also introduces the init command (which saves the configuration to disk) and the start command, which starts the node as before.


PR author checklist

@greg-szabo
Copy link
Member Author

Closed for #183

@greg-szabo greg-szabo closed this Apr 11, 2024
@greg-szabo greg-szabo deleted the greg/config branch April 11, 2024 14:26
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.

1 participant