From a9af2d4295c1c0467ffd65a264559c7b4fe38d11 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 14 Jan 2020 19:32:28 +0100 Subject: Add scaffolding for the list command This patch adds the basic scaffolding for the list command which will list all attached Nitrokey devices. --- nitrocli/src/commands.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nitrocli/src/commands.rs') 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| { -- cgit v1.2.1