mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement
- Began the new Context::initialize2, which will offer a different rabbit-hole to go down. This method will instantiate Command objects and the new Parser, rather than the monolithic alternative dispatch method and command.cpp/report.cpp/custom.cpp files.
This commit is contained in:
parent
a994baae75
commit
036aee2a8d
2 changed files with 15 additions and 0 deletions
|
@ -66,6 +66,20 @@ Context::~Context ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Context::initialize2 (int argc, char** argv)
|
||||
{
|
||||
// TODO Capture the args.
|
||||
// TODO Capture any stdin args.
|
||||
// TODO Scan for rc:<file> overrides --> apply.
|
||||
// TODO Combine command line into one string.
|
||||
// TODO Load relevant rc file.
|
||||
// TODO Instantiate built-in command objects.
|
||||
// TODO Instantiate extension command objects.
|
||||
// TODO Instantiate default command object.
|
||||
// TODO Chain-of-command pattern dispatch.
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Context::initialize (int argc, char** argv)
|
||||
{
|
||||
|
|
|
@ -47,6 +47,7 @@ public:
|
|||
Context& operator= (const Context&);
|
||||
|
||||
void initialize (int, char**); // all startup
|
||||
void initialize2 (int, char**); // all startup
|
||||
void initialize (); // for reinitializing
|
||||
int run (); // task classic
|
||||
int interactive (); // task interactive (not implemented)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue