Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ring <sjr@jdns.org>2019-09-13 16:49:03 +0300
committerJonathan White <support@dmapps.us>2019-09-28 18:24:42 +0300
commitb1eda37cca4b495ffb55ce1820ae7444c496ad28 (patch)
tree1039e2c99e717190f78dfa0fe67d429cabdcfb19 /tests/TestCli.h
parenta07ea12ac4ea882283dd47120dfeddadd0bcb21c (diff)
CLI: Add interactive session mode command `open`
This change adds a GNU Readline-based interactive mode to keepassxc-cli. If GNU Readline is not available, commands are just read from stdin with no editing or auto-complete support. DatabaseCommand is modified to add the path to the current database to the arguments passed to executeWithDatabase. In this way, instances of DatabaseCommand do not have to prompt to re-open the database after each invocation, and existing command implementations do not have to be changed to support interactive mode. This change also introduces a new way of handling commands between interactive and batch modes. * Fixes #3224. * Ran make format
Diffstat (limited to 'tests/TestCli.h')
-rw-r--r--tests/TestCli.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/TestCli.h b/tests/TestCli.h
index aa7dda8ff..d1969943c 100644
--- a/tests/TestCli.h
+++ b/tests/TestCli.h
@@ -43,11 +43,13 @@ private slots:
void cleanup();
void cleanupTestCase();
- void testCommand();
+ void testBatchCommands();
void testAdd();
void testAddGroup();
void testAnalyze();
void testClip();
+ void testCommandParsing_data();
+ void testCommandParsing();
void testCreate();
void testDiceware();
void testEdit();
@@ -58,10 +60,13 @@ private slots:
void testGenerate();
void testKeyFileOption();
void testNoPasswordOption();
+ void testHelp();
+ void testInteractiveCommands();
void testList();
void testLocate();
void testMerge();
void testMove();
+ void testOpen();
void testRemove();
void testRemoveGroup();
void testRemoveQuiet();