-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Add config dotfile and global dotfile #380
Comments
https://github.com/joho/godotenv use this rather than implement my own version seems sensible. @spenserblack Yep. I would want both global and project support for this. TODO is investigate how do actually get this working well, as dotfiles should always be overriden by command line params where supplied. |
One interesting thing I've seen in the Ruby ecosystem are "opts lists", that look like this: --option foo
--flag Basically, it's a space- and newline-separated list of arguments to pass to the argument parser. It's pretty simple and clever because the user doesn't have to learn the config file's format -- as long as they know the CLI, they basically know all they need. Another thing: in the Rust ecosystem there's a package that wraps CLI, environment variables, and config all in one. Usage is vaguely like this (basically psuedocode) let config = Config::new().filename("config.json");
let values = config.parse(); TBH I think such a package should exist in every language. I'd be interested in helping out to build such a package if there isn't already a candidate. |
#475 should be resolved by this |
Needs to be there to allow setting up how scc should count things without needing to invoke arcane commands.
Possibly allow a global one as well? Something to consider. It should not need to be supplied, but instead just picked up by scc from where it runs to allow excluding of say vendor for some Go projects and such.
The text was updated successfully, but these errors were encountered: