basti-app / basti

✨ Securely connect to RDS, Elasticache, and other AWS resources in VPCs with no idle cost
https://www.basti.app
MIT License
351 stars 18 forks source link

basti: Store configuration in ~/.basti #59

Open bobveringa opened 1 year ago

bobveringa commented 1 year ago

Feature Description

Basti currently searches for a configuration file in your current working directory up to your home directory. This is great, however sometimes when you are using basti in directories above or outside the home directory it cannot find a configuration file. The solution for this would be to always check the home directory.

This could be in a .basti directory as this also allows other information related to basti to be stored here as well as leaving room for more features in the future. The other option is to just always check for .basti.yml (or json) files in the home directory.

bobveringa commented 1 year ago

In #62 a use case is described where the .basti directory is used.

BohdanPetryshyn commented 1 year ago

Good idea! Thank you @bobveringa!

I'd start with the second option and add the dedicated directory later as needed.