keepassxc/src/cli
James Ring b1eda37cca 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
2019-09-28 11:24:42 -04:00
..
Add.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Add.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
AddGroup.cpp CLI: Add group commands 2019-09-22 21:13:50 -04:00
AddGroup.h CLI: Add group commands 2019-09-22 21:13:50 -04:00
Analyze.cpp Move notes to General tab on Group Preview Panel (#3336) 2019-06-28 21:48:25 -04:00
Analyze.h CLI: add 'analyze' subcommand for offline HIBP breach checks 2019-06-25 15:37:40 -04:00
Clip.cpp Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Clip.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Close.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Close.h CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
CMakeLists.txt CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Command.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Command.h CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Create.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Create.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
DatabaseCommand.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
DatabaseCommand.h CLI Command cleanup 2019-06-14 18:15:38 -04:00
Diceware.cpp Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Diceware.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Edit.cpp CLI password generation options cleanup (#3275) 2019-08-30 22:50:32 -04:00
Edit.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Estimate.cpp Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Estimate.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Exit.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Exit.h CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Export.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Export.h CLI: Export database as CSV 2019-09-22 12:42:53 -04:00
Generate.cpp CLI password generation options cleanup (#3275) 2019-08-30 22:50:32 -04:00
Generate.h CLI password generation options cleanup (#3275) 2019-08-30 22:50:32 -04:00
Help.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Help.h CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
keepassxc-cli.1 CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
keepassxc-cli.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
List.cpp Clean up code (#3431) 2019-08-19 21:19:32 +02:00
List.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Locate.cpp Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Locate.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Merge.cpp CLI: Add Yubikey unlock support 2019-09-22 18:11:40 -04:00
Merge.h CLI: Add Yubikey unlock support 2019-09-22 18:11:40 -04:00
Move.cpp CLI: Add group commands 2019-09-22 21:13:50 -04:00
Move.h CLI: Add group commands 2019-09-22 21:13:50 -04:00
Open.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Open.h CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Remove.cpp Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Remove.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
RemoveGroup.cpp CLI: Add group commands 2019-09-22 21:13:50 -04:00
RemoveGroup.h CLI: Add group commands 2019-09-22 21:13:50 -04:00
Show.cpp Clean up code (#3431) 2019-08-19 21:19:32 +02:00
Show.h Clean up code (#3431) 2019-08-19 21:19:32 +02:00
TextStream.cpp Set console code page to CP_UTF8 on Windows if supported. (#3050) 2019-04-25 09:28:48 +02:00
TextStream.h Adding --quiet option to the CLI. (#2507) 2018-11-28 11:24:12 -05:00
Utils.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
Utils.h CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00