-
Notifications
You must be signed in to change notification settings - Fork 87
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
Using a file for asimov options #27
Comments
Jotting down some ideas around this, maybe something like {
// The directories that should be scanned.
"directories": [
"~/Code",
"~/Sites",
"~/Vagrant",
],
// Directories that might match but should be ignored
// https://github.com/stevegrunwell/asimov/issues/14
"ignore": [
"~/.atom/extensions",
"~/.vscode/extensions",
],
// Additional patterns that aren't already covered in Asimov core.
"additionalPatterns": {
"build.sh": ["dist"],
},
} This would be painful to pull off with the current Bash iteration, but if we're rewriting Asimov in another language that opens the door to easily reading the JSON and merging it with default settings. Of course, documentation around the available options here would be key 😄 |
I would more likely put it into Read more here about the config directory: |
I would love to have this in! |
Hi everyone, My two cents on this. Using a ~/.asimovrc file is a good idea. Could also be in a per project .asimovrc. But wait! As developers, I do not know about you, but I do use git a lot. Could I be possible to use .gitignore file if present? Maybe, compare it with known .gitignore patterns to remove OS specific ignore rules so the backup wont mess those. Projects may use git but not be on a remote repository so backing them up is the way to go anyway. |
Parsing Since it is macOS only, I, personally, wouldn't like a |
I see the appeal of reading from the For a good example, consider an |
You are right. I didn't went far enough in my reflection about this. |
I think it would be a great thing to actually have a place to store options that are suggested in other issues: We could do something like:
~/.asimovrc
which contains options per line like.bashrc
or in a JSON format.The text was updated successfully, but these errors were encountered: