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

[change] Make it easier to work with files #220

Open
nemesifier opened this issue Mar 10, 2022 · 0 comments
Open

[change] Make it easier to work with files #220

nemesifier opened this issue Mar 10, 2022 · 0 comments

Comments

@nemesifier
Copy link
Member

Reseved for future releases. Leaving it here just as an idea for now.

I like the solutionwe adopted in #217 for the TLS auth key of OpenVPN.

In many cases, configuration keys point to files.
However, the current way of defining files in this library is cumbersome for users.
Ideally users can simply paste the contents of the files, without having to define the paths.

I think the approach could be something like: if a key expects a file and the string contains any new line we can infer it's the contents of the file and we can generate the file automatically for the user.
Or something along these lines.

That way we maintain backward comaptibility.

The only issue is how to decide the path where to store the file, which we have to decide whether the user could be able to hint this in any way.

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