34#ifndef _CONSOLE_GENERALCOMMANDS_HXX_
35#define _CONSOLE_GENERALCOMMANDS_HXX_
69 fprintf(fp,
"print all compiler and repository revisions\n");
75 fprintf(fp,
"%s: No revision history\n", argv[0]);
78 for (
int i = 0;
REVISIONS[i] !=
nullptr; ++i)
const char * REVISIONS[]
Revision information.
This class provides a console available from stdin/stdout as well as via telnet.
void add_command(const char *name, Callback callback, void *context=NULL)
Add a new command to the console.
CommandStatus
Enumeration of recognized command callback results.
@ COMMAND_OK
Command executed successfully.
Container for all the general commands.
static Console::CommandStatus version_command(FILE *fp, int argc, const char *argv[], void *context)
Concatinate files.
GeneralCommands(Console *console)
Constructor.
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Removes default copy-constructor and assignment added by C++.