-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
What do you think of a config file? #84
Comments
Could be useful eventually, but I would like to wait for some more feedback/upvotes on this one. If people would like to change the defaults they could also make a bash alias:
|
That's fair.
I guess that Let's see how do others feel about this. Thanks |
@dotemacs As a Unix hater I like the idea. I definitely prefer using config files over command line arguments, because it's more idempotent (bash aliases are kind of stateful), allows using version control, and even a simple text editor (not to mention Emacs) is usually light years ahead of the built-in command line one. The only thing I would add is that besides the global ~/.jet.edn (or should it be XDG compatible?) you might want to change the defaults on a per-project basis, just like Clojure cli does. And speaking of aliases, they would probably fit in here, too. |
How do you feel about
jet
having a config file where certain default options/preferences can be specified?For example input and out formats by default are EDN. But what if you happen to work with JSON more as the default input format, could there be a way to specify that the default format should be JSON?
One way I figured that this could be implemented is by having a config file where you could specify the default input format.
It could be something like
~/.jet.edn
the config could look like:So that instead of typing:
it could be typed as:
Where the
:from
&:to
options would be read from~/.jet.edn
.The text was updated successfully, but these errors were encountered: