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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user