Feature #296
Setting configuration variables in .taskrc
| Status: | Closed | Start: | 09/12/2009 | |
| Priority: | Normal | Due date: | ||
| To: | Paul Beckingham | % Done: | 100% |
|
| Category: | core | Spent time: | 2.00 hours | |
| Target version: | 1.9.0 - Kuwagata | Estimated time: | 2.00 hours | |
Description
one should be able to set configuration variables in .taskrc via task itself - like you can with git. Perhaps something like git config rc.dateformat:yMD could be used. This would set the dateformat variable in .taskrc to yMD in this example.
History
Updated by Paul Beckingham 198 days ago
I think the following might be a better way, and more closely copies git:
To set < name > equal to < value >:
$ task config < name > < value >
Are you sure? Y/n
To set < name > to blank (ie not the default value):
$ task config < name > ""
Are you sure? Y/n
To remove < name > from .taskrc (and thereby use the default:
$ task config < name >
Are you sure? Y/n
Any thoughts?
Updated by John Florian 197 days ago
Paul Beckingham wrote:
Any thoughts?
I hadn't seen that in git since I've typically just edited the file directly, but the pattern makes sense. If we were using a "set" keyword or the like, I'd say go with the antonym (e.g., "unset"), but I like your example.
Updated by Paul Beckingham 193 days ago
- Status changed from New to Closed
- % Done changed from 0 to 100
- Estimated time set to 2.00