1use clap::Parser;
2use expression_format::ex_format;
3use nethsm::{SystemState, UserRole};
4
5#[derive(Debug, Parser)]
7#[command(
8 about = "Lock a device",
9 long_about = ex_format!("Lock a device
10
11After locking, the target device is in state \"{SystemState::Locked}\" and the unlock passphrase needs to be provided to return to state \"{SystemState::Operational}\".
12
13Requires authentication of a system-wide user in the \"{UserRole::Administrator}\" role."),
14)]
15pub struct LockCommand;