1
2
3
4
5
6
7
8
9
10
11
12
13
use clap::Parser;
use nethsm::{SystemState, UserRole};

#[derive(Debug, Parser)]
#[command(
    about = "Lock a device",
    long_about = format!("Lock a device

After locking, the target device is in state \"{:?}\" and the unlock passphrase needs to be provided to return to state \"{:?}\".

Requires authentication of a user in the \"{}\" role.", SystemState::Locked, SystemState::Operational, UserRole::Administrator),
)]
pub struct LockCommand;