apple_clis/xcrun/
simctl.rs

1use crate::prelude::*;
2
3use super::XcRunInstance;
4
5pub mod boot;
6pub mod install;
7pub mod list;
8pub mod launch;
9
10#[derive(Debug)]
11pub struct XcRunSimctlInstance<'src> {
12	exec_parent: &'src XcRunInstance,
13}
14
15impl_exec_child!(
16	XcRunSimctlInstance<'src>,
17	parent = XcRunInstance,
18	subcommand = "simctl"
19);
20
21impl XcRunInstance {
22	/// Instantiates an xcrun simctl CLI instance
23	pub fn simctl(&self) -> XcRunSimctlInstance {
24		XcRunSimctlInstance { exec_parent: self }
25	}
26}
27
28impl XcRunSimctlInstance<'_> {
29	fn bossy_command(&self) -> bossy::Command {
30		self.exec_parent.bossy_command().with_arg("simctl")
31	}
32}