auv-cli 0.0.22

AUV core command-line frontend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

#[test]
fn pairing_command_debug_redacts_bootstrap_token() {
  let command = PairingCommand::Connect {
    token: "bootstrap-secret".to_string(),
    device_id: None,
    label: "test".to_string(),
    profile: None,
    json: false,
  };
  let debug = format!("{command:?}");
  assert!(!debug.contains("bootstrap-secret"));
  assert!(debug.contains("[REDACTED]"));
}