Skip to content

Check for a dotfile config, fallback to before#26

Open
codeanpeace wants to merge 1 commit intoedgeimpulse:masterfrom
codeanpeace:patch-1
Open

Check for a dotfile config, fallback to before#26
codeanpeace wants to merge 1 commit intoedgeimpulse:masterfrom
codeanpeace:patch-1

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