omkarkhatavkar / jirasync

This CLI tool to sync and track GitHub issues, pr's, pr_reviews with Jira. Currently supported to only for create, update and close status.
MIT License
4 stars 3 forks source link

Fix #5 make config file search to look env var and XDG dirs #12

Closed rochacbruno closed 5 years ago

rochacbruno commented 5 years ago

Env var

Try to find the file from path exported to JIRASYNC_SETTINGS_PATH this variable can be a directory path like /foo/bar and also can be full path like /etc/foo/config.yaml

XDG

Try to find in the XDG paths look ~/.config/jirasync/config.yaml then /etc/xdg/jirasync/config.yaml then /etc/jirasync/config.yaml

Local dir

Finally try to load from current directory.

Fail

Or raise IoError.