Skip to content

Create Provenance-specific config file. #962

Open
@SpicyLemon

Description

Summary

Create a new config file to house any provenance-specific configuration.

Problem Definition

We currently have a --testnet flag that would be easier to manage if it were an option in a config file. Also, with #952, there are some streaming configuration pieces that we would also want in that file.

While it would technically be possible to put them in the app.toml or config.toml files, any such entries would be removed if the provenanced config set, pack or unpack commands are used. That's because the writing of those files uses a template that's outside of our control, and doesn't have those custom additional fields.

Proposal

  1. Create our own configuration struct.
  2. Create our own configuration file template.
  3. Add this new config file and struct to the existing config reading/writing. That includes the config commands and packing/unpacking the config.
  4. Make sure that the testnet config field is looked for early enough to be usable everywhere that currently looks for the --testnet flag.

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Assignees

No one assigned

    Labels

    CLICommand line interface featureenhancementNew feature or requestnice-to-haveFeatures not required in upcoming milestone

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions