- Implemented stubbed Context::initialize2.
- Implemented combined command line.
- Migrated some code from Context::initialize to ::initialize2.
- Integrated ::initialize2 into the startup sequence.
- Implemented Context::dispatch2.
- Integrated ::dispatch2 into the run sequence.
- Implemented Context::updateXtermTitle.
- Added debug messages to new Command objects.
- Implemented CmdLogo, which implements the _logo command, for fun.
- Removed unnecessary base class overrides from Cmd* objects.
This commit is contained in:
Paul Beckingham 2011-05-14 12:18:39 -04:00
parent 02c2023dc4
commit 557440db0c
13 changed files with 215 additions and 141 deletions

View file

@ -33,61 +33,18 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdInstall::CmdInstall ()
/*
: _name ("")
*/
{
}
////////////////////////////////////////////////////////////////////////////////
CmdInstall::CmdInstall (const CmdInstall& other)
{
/*
_minimum = other._minimum;
*/
}
////////////////////////////////////////////////////////////////////////////////
CmdInstall& CmdInstall::operator= (const CmdInstall& other)
{
if (this != &other)
{
/*
_name = other._name;
*/
}
return *this;
}
////////////////////////////////////////////////////////////////////////////////
bool CmdInstall::operator== (const CmdInstall& other) const
{
return false;
/*
return _name == other._name &&
_minimum == other._minimum &&
_maximum == other._maximum &&
_wrap == other._wrap &&
_just == other._just &&
_sizing == other._sizing;
*/
}
////////////////////////////////////////////////////////////////////////////////
CmdInstall::~CmdInstall ()
{
}
////////////////////////////////////////////////////////////////////////////////
bool CmdInstall::read_only () const
{
return false;
}
////////////////////////////////////////////////////////////////////////////////
bool CmdInstall::implements (const std::string& command_line) const
{
std::cout << "# CmdInstall::implements\n";
return false;
}
@ -97,9 +54,10 @@ bool CmdInstall::implements (const std::string& command_line) const
// Generate UUID
// Call the "install" function once, store results in rc:
// extension.<uuid>=<JSON>
std::string CmdInstall::execute (const std::string&)
int CmdInstall::execute (const std::string& commandLine, std::string& output)
{
return "output";
std::cout << "# CmdInstall::execute\n";
return 1;
}
////////////////////////////////////////////////////////////////////////////////