()
| 4485 | /// optional and auto-generated when omitted). |
| 4486 | #[test] |
| 4487 | fn sandbox_create_name_is_optional() { |
| 4488 | let result = Cli::try_parse_from(["openshell", "sandbox", "create"]); |
| 4489 | assert!( |
| 4490 | result.is_ok(), |
| 4491 | "sandbox create without --name should be accepted: {:?}", |
| 4492 | result.err() |
| 4493 | ); |
| 4494 | if let Ok(cli) = result { |
| 4495 | if let Some(Commands::Sandbox { |
| 4496 | command: Some(SandboxCommands::Create { name, .. }), |
| 4497 | .. |
| 4498 | }) = cli.command |
| 4499 | { |
| 4500 | assert_eq!(name, None); |
| 4501 | } else { |
| 4502 | panic!("expected SandboxCommands::Create"); |
| 4503 | } |
| 4504 | } |
| 4505 | } |
| 4506 | |
| 4507 | /// `sandbox create` defaults `--approval-mode` to `"manual"`. The CLI |
| 4508 | /// always sends an explicit value so the wire form is human-readable |
nothing calls this directly
no outgoing calls
no test coverage detected