proton_launch/command/
uninstall.rs

1use crate::{paths::Paths, proton::ProtonVersion, steam::SteamData};
2
3use super::{Runnable, RunnableResult};
4
5#[derive(Debug, Clone)]
6#[cfg_attr(feature = "commandline", derive(clap::Args))]
7pub struct Uninstall {
8    /// Proton version to uninstall
9    version: ProtonVersion,
10}
11
12impl Runnable for Uninstall {
13    fn run(&self, _paths: &Paths, _steam_data: &SteamData) -> RunnableResult<()> {
14        let uninstall_url = self.version.uninstall_url();
15        open::that(uninstall_url).unwrap();
16        Ok(())
17    }
18}