()
| 4341 | |
| 4342 | #[test] |
| 4343 | fn settings_get_global_parses() { |
| 4344 | let cli = Cli::try_parse_from(["openshell", "settings", "get", "--global"]) |
| 4345 | .expect("settings get --global should parse"); |
| 4346 | |
| 4347 | match cli.command { |
| 4348 | Some(Commands::Settings { |
| 4349 | command: Some(SettingsCommands::Get { name, global, .. }), |
| 4350 | }) => { |
| 4351 | assert!(global); |
| 4352 | assert!(name.is_none()); |
| 4353 | } |
| 4354 | other => panic!("expected settings get command, got: {other:?}"), |
| 4355 | } |
| 4356 | } |
| 4357 | |
| 4358 | #[test] |
| 4359 | fn policy_get_json_output_parses() { |
nothing calls this directly
no outgoing calls
no test coverage detected