-
-
Notifications
You must be signed in to change notification settings - Fork 524
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-override
feature
#1169
Conversation
…o lockfile-merge
delete config_override step unify step description syntax
@sriniv27 Hi! I see that you requested review, but there are still commits happening, and activity in the related issue. Is this ready for review? It's fine either way, I just didn't want to comment on things if you're still working on them. |
I've only been making commits here to directly address review comments and smaller housekeeping things. I'd call this ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really close to finished! Thanks again for your work on this.
features/overrides.feature
Outdated
When we run jrnl with -1 --config-override colors.body blue | ||
Then the runtime config should have colors.body set to blue | ||
|
||
@skip_win |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created #1200 to troubleshoot, but it looks like all these passed in the CI this time. Could you try removing them and confirming?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really close to ready!
Please add me to "reqeust review" when it's ready again. Thanks again for all the hard work.
yield -> return remove needless copy adjust spacing re-inline args return reset packaging info to e6c0a16 revert package version for this PR
store cli overrides without unpacking just yet move deserialize_config_args to config module delete custom Action class for config operations apply [k,v] -> {k, v} for each override update test data update import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's all the comments addressed
Awesome! I'll take a look again tonight. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you! 🚀
--config-override
feature
jrnl
by way of a delimited list of key-value pairs. The keys can be provided in dot-notation form e.g.colors.body
Override (select) configuration values during invocation #1157
I would like to run jrnl with different configurations for some specific workflows but still maintain my current configuration for "normal" writing workflows.
For example:
code -w
as my editor. For rapid logging, I want to be able open a terminal and be dropped into the stdin prompt, record my thought, and Ctrl+D out.linewrap
value than the defaultSee motivating comment
jrnl -on today --config-override editor '' --config-override journals.log "~/logfile.txt"
jrnl -on today --config-override linewrap 30 --config-override highlight false --config-override display_format fancy
Checklist
for the same issue.