Skip to content

Improve config - CLI setup, Toml config, .envs #154

@joepio

Description

@joepio

The current configuration setup for the server is not ideal:

  • Lot of boilerplate code
  • Both env variables and ~/.config/atomic/config.toml are used
  • Running from CLI does not really instruct user to setup basic, required fields

Strategy

  • Upgrade to clap v3 (currently in beta)
  • Use a StructOpt based on the config.rs file
  • Set defaults and env names using decorators

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions