Skip to content

use config file stored in XDG_CONFIG_HOME #40

@TheJolman

Description

@TheJolman

This can store the user's GitHub token. We already support loading the token with environment variables, but it would be more user friendly to support both. One should have precedence over the other (the env var should prob override the value in the config file if it's present).

For those unfamiliar, XDG_CONFIG_HOME is usually ~/.config, so we could use something like ~/.config/oss-stats/config.toml. I'm suggesting toml here because I like it and it's very common in the Python ecosystem, but you can realistically use any config file format here (json, yaml, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    0-BEGINNERYou don't need to be familiar with our code and its structure to accomplish this task.1-MEDIUMYou may need to be familiar with the codebase to resolve this issue.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions