nethsm_cli/cli/
lock.rs

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