mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Verbosity
- Tweak to 'affected' token. Needs more.
This commit is contained in:
parent
e0aabe08bf
commit
a9de8a6596
1 changed files with 8 additions and 4 deletions
|
@ -158,14 +158,18 @@ int CmdCustom::execute (std::string& output)
|
|||
|
||||
out << optionalBlankLine ()
|
||||
<< view.render (filtered, sequence)
|
||||
<< optionalBlankLine ()
|
||||
<< (filtered.size () == 1
|
||||
? STRING_CMD_CUSTOM_COUNT
|
||||
: format (STRING_CMD_CUSTOM_COUNTN, filtered.size ()));
|
||||
<< optionalBlankLine ();
|
||||
|
||||
if (context.verbose ("affected"))
|
||||
out << (filtered.size () == 1
|
||||
? STRING_CMD_CUSTOM_COUNT
|
||||
: format (STRING_CMD_CUSTOM_COUNTN, filtered.size ()));
|
||||
|
||||
// TODO Conditional
|
||||
if (maxrows && maxrows < (int)filtered.size ())
|
||||
out << ", " << format (STRING_CMD_CUSTOM_SHOWN, maxrows);
|
||||
|
||||
// TODO Conditional
|
||||
if (maxlines && maxlines < (int)filtered.size ())
|
||||
out << ", "
|
||||
<< format (STRING_CMD_CUSTOM_TRUNCATED, maxlines - table_header);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue