diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-05 21:56:38 +0100 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-13 18:36:46 -0800 |
commit | bbb54f26c6101225a4f79f2f7f89cf5d71a62dd1 (patch) | |
tree | 708e14d408ecef67854f067c5033b78ed15c98a3 /cc/tests/support | |
parent | 1af4c0771034aa5d5f0a1f558dabc58c87fa3b19 (diff) | |
download | nitrocli-bbb54f26c6101225a4f79f2f7f89cf5d71a62dd1.tar.gz nitrocli-bbb54f26c6101225a4f79f2f7f89cf5d71a62dd1.tar.bz2 |
Add the --model option to restrict the device model to connect to
This patch adds the -m/--model option that can be used to restrict the
device model to connect to. Per default, nitrocli connects to any
available Nitrokey device. If this new option is set, it will instead
only connect to devices of the given Nitrokey model.
We introduce a new struct DeviceModel instead of using
nitrokey::DeviceModel to make sure that the command-line options are
parsed properly. On the long term, we should add a connect_model
function to the nitrokey crate to make the connection code easier.
Diffstat (limited to 'cc/tests/support')
0 files changed, 0 insertions, 0 deletions