mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-26 00:05:34 -04:00
CLI : basic entry manipulation commands. (#919)
* CLI : basic entry manipulation commands. * Code review.
This commit is contained in:
parent
1220b7d501
commit
6e1fd0694f
16 changed files with 661 additions and 9 deletions
|
@ -22,12 +22,15 @@
|
|||
|
||||
#include "Command.h"
|
||||
|
||||
#include "Add.h"
|
||||
#include "Edit.h"
|
||||
#include "Clip.h"
|
||||
#include "EntropyMeter.h"
|
||||
#include "Extract.h"
|
||||
#include "List.h"
|
||||
#include "Locate.h"
|
||||
#include "Merge.h"
|
||||
#include "Remove.h"
|
||||
#include "Show.h"
|
||||
|
||||
QMap<QString, Command*> commands;
|
||||
|
@ -56,12 +59,15 @@ QString Command::getDescriptionLine()
|
|||
void populateCommands()
|
||||
{
|
||||
if (commands.isEmpty()) {
|
||||
commands.insert(QString("add"), new Add());
|
||||
commands.insert(QString("clip"), new Clip());
|
||||
commands.insert(QString("edit"), new Edit());
|
||||
commands.insert(QString("entropy-meter"), new EntropyMeter());
|
||||
commands.insert(QString("extract"), new Extract());
|
||||
commands.insert(QString("locate"), new Locate());
|
||||
commands.insert(QString("ls"), new List());
|
||||
commands.insert(QString("merge"), new Merge());
|
||||
commands.insert(QString("rm"), new Remove());
|
||||
commands.insert(QString("show"), new Show());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue