Skip to main content

nethsm/cli/command/
lock.rs

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