(args: SetupArgs, setup_cache_dir: Option<&Path>)
| 39 | } |
| 40 | |
| 41 | pub async fn run(args: SetupArgs, setup_cache_dir: Option<&Path>) -> Result<()> { |
| 42 | match args.command { |
| 43 | Some(SetupCommands::Status) => status(&args.mode), |
| 44 | #[cfg(target_os = "linux")] |
| 45 | Some(SetupCommands::MemtrackPath) => { |
| 46 | println!("{}", crate::executor::memtrack_path()?.display()); |
| 47 | Ok(()) |
| 48 | } |
| 49 | None => setup(&args.mode, setup_cache_dir).await, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | /// Resolve the executors to operate on from the requested modes. |
| 54 | /// |