louib
04360ed552
✨ ✨ CLI Command cleanup ✨ ✨
...
This PR cleans up the `Command` classes in the CLI, introducing a
`DatabaseCommand` class for the commands operating on a database,
and a `getCommandLineParser` command to centralize the arguments
parsing and validation.
The opening of the database based on the CLI arguments and options
is now centralized in `DatabaseCommand.execute`, making it easy to
add new database opening features (like YubiKey support for the CLI).
Also a couple of bugs fixed:
* `Create` was still using `stdout` for some error messages.
* `Diceware` and `Generate` were not validating that the word count was an integer.
* `Diceware` was also using `stdout` for some error messages.
2019-06-14 18:15:38 -04:00
..
2019-05-19 18:21:34 -04:00
2019-05-04 16:45:03 -04:00
2018-11-28 18:29:15 -05:00
2018-12-18 22:28:56 -05:00
2018-11-28 18:29:15 -05:00
2019-05-30 17:22:09 -04:00
2018-03-31 11:36:18 -04:00
2018-03-31 16:01:30 -04:00
2015-09-12 13:55:50 +02:00
2017-06-01 17:05:07 -04:00
2017-03-10 16:12:02 +01:00
2019-05-12 12:37:50 -04:00
2018-11-22 11:47:31 +01:00
2018-01-24 13:32:37 +01:00
2017-10-21 13:15:02 +02:00
2019-05-29 09:24:22 -04:00
2019-05-29 09:24:22 -04:00
2019-06-14 18:15:38 -04:00
2019-03-24 09:23:26 -04:00
2018-11-28 18:29:15 -05:00
2017-03-10 16:12:02 +01:00
2019-01-28 22:38:59 -05:00
2018-11-22 11:47:31 +01:00
2018-03-31 16:01:30 -04:00
2018-03-31 16:01:30 -04:00
2018-11-22 11:47:31 +01:00
2017-06-14 15:54:43 +02:00
2018-11-22 11:47:31 +01:00
2018-11-22 11:47:31 +01:00
2019-01-21 14:24:57 -05:00
2017-12-17 10:44:12 -05:00
2018-11-17 08:49:47 -05:00
2017-03-10 16:12:02 +01:00
2019-05-12 12:35:42 -04:00
2019-05-12 12:35:42 -04:00
2019-05-12 12:35:42 -04:00
2019-05-12 12:35:42 -04:00
2018-11-28 18:29:15 -05:00
2019-03-19 18:56:17 -04:00
2019-02-01 17:03:28 -05:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-01-24 13:32:37 +01:00
2017-03-10 16:12:02 +01:00
2018-11-22 11:47:31 +01:00
2018-11-22 11:47:31 +01:00
2018-11-22 11:47:31 +01:00
2019-01-28 22:38:59 -05:00
2019-05-01 18:35:08 -04:00
2019-01-28 22:38:59 -05:00
2018-11-28 18:29:15 -05:00
2018-11-22 11:47:31 +01:00
2018-11-28 18:29:15 -05:00
2019-01-28 22:38:59 -05:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-11-28 18:29:15 -05:00
2018-03-01 19:26:18 -05:00
2019-05-19 18:21:34 -04:00
2019-05-01 18:35:08 -04:00
2018-11-28 18:29:15 -05:00
2018-09-30 09:36:39 -04:00
2018-12-18 22:28:56 -05:00
2018-10-01 10:39:37 -04:00
2019-05-19 18:21:34 -04:00
2019-05-19 18:21:34 -04:00
2019-05-24 18:23:19 -04:00
2019-05-24 18:23:19 -04:00
2018-11-28 18:29:15 -05:00
2018-11-28 18:29:15 -05:00
2018-10-01 10:39:37 -04:00
2018-10-01 10:39:37 -04:00
2019-01-28 22:38:59 -05:00
2018-10-01 10:39:37 -04:00
2018-10-01 10:39:37 -04:00
2018-10-01 10:39:37 -04:00
2018-11-28 18:29:15 -05:00
2018-10-19 21:49:54 +02:00
2019-03-25 13:06:03 -04:00
2018-05-22 09:28:54 +02:00
2019-04-15 14:23:26 -04:00
2018-09-15 12:10:26 -04:00
2019-04-11 08:52:51 -04:00
2019-03-19 18:56:17 -04:00
2018-03-31 16:01:30 -04:00
2017-03-10 16:12:02 +01:00
2018-03-31 16:01:30 -04:00
2018-03-31 16:01:30 -04:00