MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / sandbox_provider_subcommands_parse

Function sandbox_provider_subcommands_parse

crates/openshell-cli/src/main.rs:3280–3301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3278
3279 #[test]
3280 fn sandbox_provider_subcommands_parse() {
3281 let cli = Cli::try_parse_from([
3282 "openshell",
3283 "sandbox",
3284 "provider",
3285 "attach",
3286 "work-sandbox",
3287 "work-github",
3288 ])
3289 .expect("sandbox provider attach should parse");
3290
3291 let Some(Commands::Sandbox {
3292 command:
3293 Some(SandboxCommands::Provider(SandboxProviderCommands::Attach { name, provider })),
3294 }) = cli.command
3295 else {
3296 panic!("expected sandbox provider attach command");
3297 };
3298
3299 assert_eq!(name, "work-sandbox");
3300 assert_eq!(provider, "work-github");
3301 }
3302
3303 #[test]
3304 fn completions_policy_flag_falls_back_to_file_paths() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected