Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment Variable Support in config file #1150

Open
gdamms opened this issue Mar 15, 2024 · 0 comments
Open

Environment Variable Support in config file #1150

gdamms opened this issue Mar 15, 2024 · 0 comments

Comments

@gdamms
Copy link

gdamms commented Mar 15, 2024

Description:

This feature request proposes adding support for referencing environment variables within the paru configuration file (paru.conf). This would allow users to dynamically configure paru based on system or user-defined environment variables.

Motivation:

Currently, paru's configuration options are statically defined within paru.conf. This can be limiting in situations where users want to adapt paru's behavior based on external factors. Environment variable support would provide greater flexibility and allow for more dynamic configuration.

Possible Use Cases:

Setting download directory based on a user-defined environment variable (e.g., $DOWNLOAD_DIR).
Enabling/disabling specific repositories based on the presence of a flag variable (e.g., $ENABLE_AUR).
Configuring build flags based on environment variables related to system resources (e.g., $MAKEFLAGS).

Benefits:

Increased flexibility and adaptability for paru configuration.
Improved user experience by allowing for dynamic configuration based on environment variables.

Drawbacks:

Increased complexity for some users who might not be familiar with environment variables. (but if you are bidoulling paru's config file you might not be concerned)
Potential for introducing errors if environment variables are not set correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant