pub enum IssueCommand {
List {
owner_repo: Option<String>,
state: String,
labels: Vec<String>,
assignee: Option<String>,
author: Option<String>,
mention: Option<String>,
milestone: Option<String>,
limit: u32,
web: bool,
json: Option<Vec<String>>,
hostname: Option<String>,
},
View {
number: u64,
repo: Option<String>,
web: bool,
comments: bool,
json: Option<Vec<String>>,
hostname: Option<String>,
},
Close {
number: u64,
repo: Option<String>,
comment: Option<String>,
reason: Option<String>,
hostname: Option<String>,
},
Reopen {
number: u64,
repo: Option<String>,
comment: Option<String>,
hostname: Option<String>,
},
Comment {
number: u64,
repo: Option<String>,
body: Option<String>,
body_file: Option<String>,
web: bool,
hostname: Option<String>,
},
Create {
repo: Option<String>,
title: Option<String>,
body: Option<String>,
labels: Vec<String>,
assignee: Vec<String>,
milestone: Option<String>,
project: Option<u32>,
web: bool,
hostname: Option<String>,
},
Edit {
number: u64,
repo: Option<String>,
title: Option<String>,
body: Option<String>,
add_label: Vec<String>,
remove_label: Vec<String>,
add_assignee: Vec<String>,
remove_assignee: Vec<String>,
milestone: Option<String>,
hostname: Option<String>,
},
Transfer {
number: u64,
destination: String,
repo: Option<String>,
hostname: Option<String>,
},
}Expand description
Subcommands for gor issue.
Variants§
List
List issues in a repository.
Fields
§
owner_repo: Option<String>Repository to list issues for (OWNER/REPO format). Auto-detected from git remote if omitted.
Filter by issue author login.
View
View details of an issue.
Fields
Close
Close an issue.
Fields
Reopen
Reopen a closed issue.
Fields
Comment
Add a comment to an issue.
Fields
Create
Create an issue.
Fields
Edit
Edit an issue.
Fields
Transfer
Transfer an issue to another repository.
Trait Implementations§
Source§impl Debug for IssueCommand
impl Debug for IssueCommand
Source§impl FromArgMatches for IssueCommand
impl FromArgMatches for IssueCommand
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 IssueCommand
impl Subcommand for IssueCommand
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 IssueCommand
impl RefUnwindSafe for IssueCommand
impl Send for IssueCommand
impl Sync for IssueCommand
impl Unpin for IssueCommand
impl UnsafeUnpin for IssueCommand
impl UnwindSafe for IssueCommand
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