2016-07-22 Fred Gleason <fredg@paravelsystems.com>

* Implemented a 'deletelog' command for rdclilogedit(1).
This commit is contained in:
Fred Gleason
2016-07-22 13:53:54 -04:00
parent d4e2b65796
commit b41c243de9
7 changed files with 82 additions and 5 deletions

View File

@@ -45,6 +45,21 @@ void MainObject::DispatchCommand(QString cmd)
//
// No loaded log needed for these
//
if(verb=="deletelog") {
if(edit_user->deleteLog()) {
if(cmds.size()==2) {
Deletelog(cmds[1]);
}
else {
fprintf(stderr,"deletelog: invalid command arguments\n");
}
}
else {
fprintf(stderr,"deletelog: insufficient privileges [Delete Log]\n");
}
processed=true;
}
if((verb=="exit")||(verb=="quit")||(verb=="bye")) {
if(overwrite) {
exit(0);