yt-cli 0.1.1

Command line interface for JetBrains YouTrack
Documentation
mod delete;
mod download;
mod list;
mod upload;

use usage_rs::{Args, Subcommands};

/// Work with issue attachments
#[derive(Args)]
#[usage(run_async_with)]
pub(crate) struct AttachmentGroup {
    #[usage(subcommand)]
    command: AttachmentCommand,
}

#[derive(Subcommands)]
#[usage(run_async_with)]
pub(crate) enum AttachmentCommand {
    /// List an issue's attachments
    #[usage(visible_alias = "ls")]
    List(list::List),
    /// Upload files to an issue
    Upload(upload::Upload),
    /// Download an attachment
    Download(download::Download),
    /// Delete an attachment
    Delete(delete::Delete),
}