pub enum ReleaseCommand {
List {
repo: Option<String>,
limit: u32,
exclude_drafts: bool,
exclude_prereleases: bool,
json: Option<Vec<String>>,
hostname: Option<String>,
},
View {
release: String,
repo: Option<String>,
web: bool,
json: Option<Vec<String>>,
hostname: Option<String>,
},
Delete {
release: String,
repo: Option<String>,
yes: bool,
skip_tag: bool,
hostname: Option<String>,
},
Edit {
release: String,
repo: Option<String>,
title: Option<String>,
notes: Option<String>,
notes_file: Option<String>,
draft: Option<bool>,
prerelease: Option<bool>,
tag: Option<String>,
target: Option<String>,
hostname: Option<String>,
},
Upload {
release: String,
files: Vec<String>,
repo: Option<String>,
name: Option<String>,
mime_type: Option<String>,
hostname: Option<String>,
},
Create {
tag: String,
repo: Option<String>,
title: Option<String>,
notes: Option<String>,
notes_file: Option<String>,
draft: bool,
prerelease: bool,
target: Option<String>,
discussion_category: Option<String>,
hostname: Option<String>,
},
Download {
release: String,
repo: Option<String>,
patterns: Vec<String>,
dir: String,
skip_existing: bool,
hostname: Option<String>,
},
DeleteAsset {
asset_id: u64,
repo: Option<String>,
yes: bool,
hostname: Option<String>,
},
}Expand description
Subcommands for gor release.
Variants§
List
List releases in a repository.
Fields
View
View details of a release.
Fields
Delete
Delete a release.
Fields
Edit
Edit a release.
Fields
Upload
Upload assets to a release.
Fields
Create
Create a new release.
Fields
Download
Download release assets.
Fields
DeleteAsset
Delete a release asset.
Trait Implementations§
Source§impl Debug for ReleaseCommand
impl Debug for ReleaseCommand
Source§impl FromArgMatches for ReleaseCommand
impl FromArgMatches for ReleaseCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for ReleaseCommand
impl Subcommand for ReleaseCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ReleaseCommand
impl RefUnwindSafe for ReleaseCommand
impl Send for ReleaseCommand
impl Sync for ReleaseCommand
impl Unpin for ReleaseCommand
impl UnsafeUnpin for ReleaseCommand
impl UnwindSafe for ReleaseCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more