-
Notifications
You must be signed in to change notification settings - Fork 52
Allow setting context with DSTASK_CONTEXT #66
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
Allow setting context with DSTASK_CONTEXT #66
Conversation
If this env var is set to a valid context string, it takes precedence over context stored in local state. The "--" ignore context token will still be respected, however. Space-separated strings are allowed in DSTASK_CONTEXT. We tokenize before passing to ParseCmdLine Refs naggie#20
2c68b4b
to
c962b4e
Compare
@naggie I opted for a shorter env var name. Let me know if there's another you'd prefer. |
Just a few thoughts:
I think I might set my bash/zsh prompt to display the current dstask context like it shows the git branch. |
How about this message?
Come through and adjust the message style any way you like. Perhaps this is a little wordy. |
We describe how to use them, and how to set them with the command and with DSTASK_CONTEXT
For the documentation bit, I opted for a whole section just about Context. |
Thanks @dontlaugh looks top notch. |
If this env var is set to a valid context string, it takes precedence
over context stored in local state. The "--" ignore context token will
still be respected, however.
Refs #20