mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Argument Parsing
- Eliminated stored arg_overrides and file_override in Context. - Removed Filter, Subst, Task, Sequence from Context. - Remove shadow file support. Hallelujah. - Disabled/commented out most commands, ready for the big transition to the new parsing style. - Obsoleted Subst.{h,cpp}.
This commit is contained in:
parent
b4c1e47ab4
commit
58a677ffb5
42 changed files with 265 additions and 383 deletions
|
@ -47,6 +47,7 @@ CmdShell::CmdShell ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdShell::execute (std::string&)
|
||||
{
|
||||
/*
|
||||
// Display some kind of welcome message.
|
||||
Color bold (Color::nocolor, Color::nocolor, false, true, false);
|
||||
std::cout << (context.color () ? bold.colorize (PACKAGE_STRING) : PACKAGE_STRING)
|
||||
|
@ -85,17 +86,15 @@ int CmdShell::execute (std::string&)
|
|||
{
|
||||
try
|
||||
{
|
||||
/*
|
||||
context.clear ();
|
||||
std::vector <std::string> args;
|
||||
split (args, decoratedCommand, ' ');
|
||||
std::vector <std::string>::iterator arg;
|
||||
for (arg = args.begin (); arg != args.end (); ++arg)
|
||||
context.args.push_back (*arg);
|
||||
|
||||
context.initialize (0, NULL);
|
||||
context.run ();
|
||||
*/
|
||||
// context.clear ();
|
||||
// std::vector <std::string> args;
|
||||
// split (args, decoratedCommand, ' ');
|
||||
// std::vector <std::string>::iterator arg;
|
||||
// for (arg = args.begin (); arg != args.end (); ++arg)
|
||||
// context.args.push_back (*arg);
|
||||
//
|
||||
// context.initialize (0, NULL);
|
||||
// context.run ();
|
||||
}
|
||||
|
||||
catch (std::string& error)
|
||||
|
@ -113,6 +112,7 @@ int CmdShell::execute (std::string&)
|
|||
|
||||
// No need to repeat any overrides after the shell quits.
|
||||
context.clearMessages ();
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue