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

Check for a dotfile config, fallback to before #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codeanpeace
Copy link

Configuration files are normally dotfiles – filename preceded by a dot to hide from GUI – but Edge Impulse breaks this convention since its config file is located at ~/edge-impulse-config.json rather than ~/.edge-impulse-config.json. This updates the constructor function in config.ts to look for a hidden dotfile config before falling back to the non hidden config file. This should hopefully let those that care convert the Edge Impulse config file into a dotfile while not affecting others.

note: this is very much a naive simple approach as I'm unfamiliar with the entirety of this CLI

Configuration files are normally dotfiles – filename preceded by a dot to hide from GUI – but Edge Impulse breaks this convention since its config file is located at `~/edge-impulse-config.json` rather than `~/.edge-impulse-config.json`. This updates the constructor function in `config.ts` to look for a hidden dotfile config before falling back to the non hidden config file. This should hopefully let those that care convert the Edge Impulse config file into a dotfile while not affecting others.

note: this is very much a naive simple approach as I'm unfamiliar with the entirety of this CLI
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

Successfully merging this pull request may close these issues.

1 participant