Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Add GridConfig for gridd #21

Merged
merged 4 commits into from
Mar 25, 2019

Conversation

peterschwarz
Copy link
Contributor

This PR adds a GridConfig and GridConfigBuilder to transform CLI args (and future configuration files) into a configuration object. Defaults are all managed via the builder.

Add a ConfigurationError, which will be used to propagate any issues
that occur at configuration time.

Signed-off-by: Peter Schwarz <pschwarz@bitwise.io>
A GridConfig can be created via a Builder.  The intent of the GridConfig
builder is to join in values from various sources: default values and
cli args to start. Future commits may include joining values from a
configuration file.

This initial version includes values for the connect (i.e. validator
endpoint) and the logging level).

Signed-off-by: Peter Schwarz <pschwarz@bitwise.io>
Signed-off-by: Peter Schwarz <pschwarz@bitwise.io>
Replace the use of arg matches directly with the use of grid config in
main.

Additionally,

Add a CLI parameter for the connect endpoint.

Signed-off-by: Peter Schwarz <pschwarz@bitwise.io>
@peterschwarz peterschwarz merged commit c533b10 into hyperledger-archives:master Mar 25, 2019
@peterschwarz peterschwarz deleted the pschwarz_config branch March 25, 2019 16:41
ameliabradley pushed a commit to ameliabradley/grid that referenced this pull request Jul 26, 2022
…t-nodes

Add partial form to select nodes for circuit proposal
ameliabradley pushed a commit to ameliabradley/grid that referenced this pull request Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants