intermodal/src/subcommand.rs
Casey Rodarmor fd06943726
Rename: Environment -> Env
type: reform
2020-04-07 19:00:44 -07:00

15 lines
283 B
Rust

use crate::common::*;
#[derive(StructOpt)]
pub(crate) enum Subcommand {
Torrent(Torrent),
}
impl Subcommand {
pub(crate) fn run(self, env: &mut Env, unstable: bool) -> Result<(), Error> {
match self {
Self::Torrent(torrent) => torrent.run(env, unstable),
}
}
}