mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Context: Introduce 'default' verbosity token
The purpose of this token is to control the display of information messages about taskwarrior choosing a default action of some sort.
This commit is contained in:
parent
867efe3928
commit
712f0080dd
1 changed files with 7 additions and 5 deletions
|
@ -87,7 +87,7 @@ std::string configurationDefaults =
|
||||||
"\n"
|
"\n"
|
||||||
"# Miscellaneous\n"
|
"# Miscellaneous\n"
|
||||||
"# verbose= # Comma-separated list. May contain any subset of:\n"
|
"# verbose= # Comma-separated list. May contain any subset of:\n"
|
||||||
"# affected,blank,context,edit,filter,footnote,header,label,new-id,new-uuid,override,project,recur,special,sync"
|
"# affected,blank,context,default,edit,filter,footnote,header,label,new-id,new-uuid,override,project,recur,special,sync\n"
|
||||||
"verbose=affected,blank,context,edit,header,footnote,label,new-id,project,special,sync,override,recur\n"
|
"verbose=affected,blank,context,edit,header,footnote,label,new-id,project,special,sync,override,recur\n"
|
||||||
"confirmation=1 # Confirmation on delete, big changes\n"
|
"confirmation=1 # Confirmation on delete, big changes\n"
|
||||||
"recurrence=1 # Enable recurrence\n"
|
"recurrence=1 # Enable recurrence\n"
|
||||||
|
@ -633,11 +633,13 @@ int Context::initialize (int argc, const char** argv)
|
||||||
foundAssumed = true;
|
foundAssumed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (verbose ("default")) {
|
||||||
if (foundDefault)
|
if (foundDefault)
|
||||||
header ("[" + combined + "]");
|
header ("[" + combined + "]");
|
||||||
|
|
||||||
if (foundAssumed)
|
if (foundAssumed)
|
||||||
header ("No command specified - assuming 'information'.");
|
header ("No command specified - assuming 'information'.");
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue