Auto load .env file in current directory#249
Conversation
|
I don't think it's necessary to add the The current best practice for using the posting tool is to prepare a directory with the following structure: Normally, we cd into this directory and execute If customizability is really desired, we could add config.yaml configuration options to achieve this. PS: Also, I wonder if having a global configuration for collections would be better? (Since the current posting approach suggests that collections shouldn't contain metadata). |
|
I think you're right regarding the no-auto-env param, I didn't think it through. I'll remove that. edit: moved chat about global config to a discussion: #146 (comment) |
|
Would it be better to autoload posting.env instead? This would avoid conflicts with other tools sharing the same .env file, while also being more explicit (not a hidden file) and clearly indicating its intended use. |
|
Hmm - yes, that's a good point. I think it's better to be explicit about that since |
And add short flag "-c" alias to "--collection"