aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/commands.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-14 19:32:28 +0100
committerDaniel Mueller <deso@posteo.net>2020-01-15 12:08:15 -0800
commita9af2d4295c1c0467ffd65a264559c7b4fe38d11 (patch)
tree3691ff6520e98e27b133d990ccfe9a3aad59628a /nitrocli/src/commands.rs
parent1e07212370806f3ea4ff7a6f66e5716b60ab1f77 (diff)
downloadnitrocli-a9af2d4295c1c0467ffd65a264559c7b4fe38d11.tar.gz
nitrocli-a9af2d4295c1c0467ffd65a264559c7b4fe38d11.tar.bz2
Add scaffolding for the list command
This patch adds the basic scaffolding for the list command which will list all attached Nitrokey devices.
Diffstat (limited to 'nitrocli/src/commands.rs')
-rw-r--r--nitrocli/src/commands.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs
index cc57786..3bc7300 100644
--- a/nitrocli/src/commands.rs
+++ b/nitrocli/src/commands.rs
@@ -376,6 +376,11 @@ pub fn status(ctx: &mut args::ExecCtx<'_>) -> Result<()> {
})
}
+/// List the attached Nitrokey devices.
+pub fn list(_ctx: &mut args::ExecCtx<'_>, _no_connect: bool) -> Result<()> {
+ unimplemented!();
+}
+
/// Perform a factory reset.
pub fn reset(ctx: &mut args::ExecCtx<'_>) -> Result<()> {
with_device(ctx, |ctx, mut device| {