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

Function policy_delete_global_parses

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

Source from the content-addressed store, hash-verified

4410
4411 #[test]
4412 fn policy_delete_global_parses() {
4413 let cli = Cli::try_parse_from(["openshell", "policy", "delete", "--global", "--yes"])
4414 .expect("policy delete --global should parse");
4415
4416 match cli.command {
4417 Some(Commands::Policy {
4418 command: Some(PolicyCommands::Delete { global, yes }),
4419 }) => {
4420 assert!(global);
4421 assert!(yes);
4422 }
4423 other => panic!("expected policy delete command, got: {other:?}"),
4424 }
4425 }
4426
4427 #[test]
4428 fn settings_delete_global_parses_yes_flag() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected