intermodal/src/subcommand.rs
Casey Rodarmor 98335f435d
Initial commit
type: added
2020-04-07 18:55:30 -07:00

15 lines
287 B
Rust

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