Skip to content

Chore: Consolidate ini/config parsing #49

Open
@erichelgeson

Description

Config is parsed all over the place which leads to bugs and duplicated code. It is hard coded to one file which makes it inflexible.

We should be able to:

  • Abstract away the file it's reading the config from
  • Allow updates to config values
    • This is more complex now that there's a caching layer
  • Have one way to get the most correct value for a key (See Fixes hard coded block sizes in multiple locations. #47)
    • ini scsi id section - take this no matter what, user must know more than we do
    • ini scsi global section - take this if not set in the id section.
    • File name - take this if not set in the ini
    • Runtime detection if applicable
    • Sane default
  • Move config keys to own file and document there
    • Have process parse this file and update ini.bluescsi.com and the wiki automatically

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions