ani-tui 0.2.1

Watch anime from the shell via mpv
Documentation
use clap::Parser;

#[derive(Parser)]
#[clap(author, version)]
#[clap(propagate_version = true)]
/// A terminal app to watch anime on GoGoPlay (<https://goload.pro>)
pub struct Args {
    /// A commmand
    #[clap(subcommand)]
    pub command: Commands,
}

/// Supported CLI commnands
#[allow(missing_docs)]
#[derive(Subcommand)]
pub enum Commands {
    /// Search for an anime by title
    Search {
        /// Anime title
        title: String,
    },
    /// Get a list of episodes for anime identifier.
    EpCount {
        /// An anime identifier
        ident: String,
    },
    /// Get detailed information: description + episode list
    Detail {
        /// An anime identifier
        ident: String,
    },
    /// Watch episode in MPV
    Watch {
        /// Anime identifier
        ident: String,
        /// Episode number
        ep: usize,
    },
}