mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdHistory: Formatting
This commit is contained in:
parent
7490663d9e
commit
fdc37c037f
1 changed files with 10 additions and 10 deletions
|
@ -58,7 +58,7 @@ CmdHistoryBase<HistoryStrategy>::CmdHistoryBase ()
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
template<class HistoryStrategy>
|
template<class HistoryStrategy>
|
||||||
void CmdHistoryBase<HistoryStrategy>::outputGraphical (std::string &output)
|
void CmdHistoryBase<HistoryStrategy>::outputGraphical (std::string& output)
|
||||||
{
|
{
|
||||||
auto widthOfBar = context.getWidth () - HistoryStrategy::labelWidth;
|
auto widthOfBar = context.getWidth () - HistoryStrategy::labelWidth;
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ void CmdHistoryBase<HistoryStrategy>::outputGraphical (std::string &output)
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
template<class HistoryStrategy>
|
template<class HistoryStrategy>
|
||||||
void CmdHistoryBase<HistoryStrategy>::outputTabular (std::string &output)
|
void CmdHistoryBase<HistoryStrategy>::outputTabular (std::string& output)
|
||||||
{
|
{
|
||||||
Table view;
|
Table view;
|
||||||
setHeaderUnderline (view);
|
setHeaderUnderline (view);
|
||||||
|
@ -283,7 +283,7 @@ void CmdHistoryBase<HistoryStrategy>::outputTabular (std::string &output)
|
||||||
class MonthlyHistoryStrategy
|
class MonthlyHistoryStrategy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Datetime getRelevantDate (const Datetime & dt)
|
static Datetime getRelevantDate (const Datetime& dt)
|
||||||
{
|
{
|
||||||
return dt.startOfMonth ();
|
return dt.startOfMonth ();
|
||||||
}
|
}
|
||||||
|
@ -385,7 +385,7 @@ int CmdHistoryBase<HistoryStrategy>::execute (std::string& output)
|
||||||
class MonthlyGHistoryStrategy
|
class MonthlyGHistoryStrategy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Datetime getRelevantDate (const Datetime & dt)
|
static Datetime getRelevantDate (const Datetime& dt)
|
||||||
{
|
{
|
||||||
return dt.startOfMonth ();
|
return dt.startOfMonth ();
|
||||||
}
|
}
|
||||||
|
@ -428,7 +428,7 @@ public:
|
||||||
class AnnualGHistoryStrategy
|
class AnnualGHistoryStrategy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Datetime getRelevantDate (const Datetime & dt)
|
static Datetime getRelevantDate (const Datetime& dt)
|
||||||
{
|
{
|
||||||
return dt.startOfYear ();
|
return dt.startOfYear ();
|
||||||
}
|
}
|
||||||
|
@ -468,7 +468,7 @@ public:
|
||||||
class AnnualHistoryStrategy
|
class AnnualHistoryStrategy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Datetime getRelevantDate (const Datetime & dt)
|
static Datetime getRelevantDate (const Datetime& dt)
|
||||||
{
|
{
|
||||||
return dt.startOfYear ();
|
return dt.startOfYear ();
|
||||||
}
|
}
|
||||||
|
@ -509,7 +509,7 @@ public:
|
||||||
class DailyHistoryStrategy
|
class DailyHistoryStrategy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Datetime getRelevantDate (const Datetime & dt)
|
static Datetime getRelevantDate (const Datetime& dt)
|
||||||
{
|
{
|
||||||
return dt.startOfDay ();
|
return dt.startOfDay ();
|
||||||
}
|
}
|
||||||
|
@ -556,7 +556,7 @@ public:
|
||||||
class DailyGHistoryStrategy
|
class DailyGHistoryStrategy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Datetime getRelevantDate (const Datetime & dt)
|
static Datetime getRelevantDate (const Datetime& dt)
|
||||||
{
|
{
|
||||||
return dt.startOfDay ();
|
return dt.startOfDay ();
|
||||||
}
|
}
|
||||||
|
@ -603,7 +603,7 @@ public:
|
||||||
class WeeklyHistoryStrategy
|
class WeeklyHistoryStrategy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Datetime getRelevantDate (const Datetime & dt)
|
static Datetime getRelevantDate (const Datetime& dt)
|
||||||
{
|
{
|
||||||
return dt.startOfWeek ();
|
return dt.startOfWeek ();
|
||||||
}
|
}
|
||||||
|
@ -650,7 +650,7 @@ public:
|
||||||
class WeeklyGHistoryStrategy
|
class WeeklyGHistoryStrategy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Datetime getRelevantDate (const Datetime & dt)
|
static Datetime getRelevantDate (const Datetime& dt)
|
||||||
{
|
{
|
||||||
return dt.startOfWeek ();
|
return dt.startOfWeek ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue