mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context: Convert some CLI calls to CLI2
This commit is contained in:
parent
49e7196dec
commit
dc5f9e38a6
1 changed files with 3 additions and 3 deletions
|
@ -646,7 +646,7 @@ void Context::getLimits (int& rows, int& lines)
|
||||||
void Context::staticInitialization ()
|
void Context::staticInitialization ()
|
||||||
{
|
{
|
||||||
CLI::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
CLI::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||||
CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||||
|
|
||||||
Task::defaultProject = config.get ("default.project");
|
Task::defaultProject = config.get ("default.project");
|
||||||
Task::defaultDue = config.get ("default.due");
|
Task::defaultDue = config.get ("default.due");
|
||||||
|
@ -753,7 +753,7 @@ void Context::updateXtermTitle ()
|
||||||
{
|
{
|
||||||
if (config.getBoolean ("xterm.title") && isatty (STDOUT_FILENO))
|
if (config.getBoolean ("xterm.title") && isatty (STDOUT_FILENO))
|
||||||
{
|
{
|
||||||
std::string command = cli.getCommand ();
|
std::string command = cli2.getCommand ();
|
||||||
std::string title;
|
std::string title;
|
||||||
|
|
||||||
for (auto a = cli._args.begin (); a != cli._args.end (); ++a)
|
for (auto a = cli._args.begin (); a != cli._args.end (); ++a)
|
||||||
|
@ -772,7 +772,7 @@ void Context::updateXtermTitle ()
|
||||||
// This function allows a clean output if the command is a helper subcommand.
|
// This function allows a clean output if the command is a helper subcommand.
|
||||||
void Context::updateVerbosity ()
|
void Context::updateVerbosity ()
|
||||||
{
|
{
|
||||||
std::string command = cli.getCommand ();
|
std::string command = cli2.getCommand ();
|
||||||
if (command != "" &&
|
if (command != "" &&
|
||||||
command[0] == '_')
|
command[0] == '_')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue