mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-07 21:07:20 +02:00
Portability: Updated to make main re-entrant()
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
This commit is contained in:
parent
cae3f06b7d
commit
7af6db4c17
112 changed files with 960 additions and 1147 deletions
|
@ -32,8 +32,6 @@
|
|||
#include <format.h>
|
||||
#include <util.h>
|
||||
|
||||
extern Context context;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
CmdReports::CmdReports ()
|
||||
{
|
||||
|
@ -56,7 +54,7 @@ int CmdReports::execute (std::string& output)
|
|||
std::vector <std::string> reports;
|
||||
|
||||
// Add custom reports.
|
||||
for (auto& i : context.config)
|
||||
for (auto& i : Context::getContext ().config)
|
||||
{
|
||||
if (i.first.substr (0, 7) == "report.")
|
||||
{
|
||||
|
@ -85,7 +83,7 @@ int CmdReports::execute (std::string& output)
|
|||
// Compose the output.
|
||||
std::stringstream out;
|
||||
Table view;
|
||||
view.width (context.getWidth ());
|
||||
view.width (Context::getContext ().getWidth ());
|
||||
view.add ("Report");
|
||||
view.add ("Description");
|
||||
setHeaderUnderline (view);
|
||||
|
@ -94,7 +92,7 @@ int CmdReports::execute (std::string& output)
|
|||
{
|
||||
int row = view.addRow ();
|
||||
view.set (row, 0, report);
|
||||
view.set (row, 1, context.commands[report]->description ());
|
||||
view.set (row, 1, Context::getContext ().commands[report]->description ());
|
||||
}
|
||||
|
||||
out << optionalBlankLine ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue