pub enum RepoCommand {
View {
owner_repo: Option<String>,
web: bool,
json: Option<Vec<String>>,
hostname: Option<String>,
},
List {
owner: Option<String>,
visibility: String,
fork: String,
language: Option<String>,
limit: u32,
json: Option<Vec<String>>,
hostname: Option<String>,
},
Clone {
owner_repo: String,
directory: Option<String>,
upstream_remote_name: String,
hostname: Option<String>,
},
Create {
name: String,
description: Option<String>,
private: bool,
internal: bool,
org: Option<String>,
template: Option<String>,
clone: bool,
remote: String,
push: bool,
disable_wiki: bool,
disable_issues: bool,
hostname: Option<String>,
},
Fork {
owner_repo: String,
org: Option<String>,
clone: bool,
remote: String,
fork_name: Option<String>,
hostname: Option<String>,
},
Delete {
owner_repo: String,
yes: bool,
hostname: Option<String>,
},
Edit {
repo: Option<String>,
description: Option<String>,
visibility: Option<String>,
add_topic: Vec<String>,
remove_topic: Vec<String>,
default_branch: Option<String>,
enable_wiki: Option<String>,
enable_issues: Option<String>,
enable_projects: Option<String>,
hostname: Option<String>,
},
Transfer {
target: String,
repo: Option<String>,
new_name: Option<String>,
team: Vec<String>,
yes: bool,
hostname: Option<String>,
},
Sync {
repo: Option<String>,
branch: Option<String>,
hostname: Option<String>,
},
}Expand description
Subcommands for gor repo.
Variants§
View
View a repository’s description, stats, and metadata.
Fields
List
List repositories for a user or organization.
Fields
Clone
Clone a repository locally.
Fields
Create
Create a repository.
Fields
Fork
Fork a repository.
Fields
Delete
Delete a repository.
Fields
Edit
Edit a repository’s settings.
Fields
Transfer
Transfer a repository to another user or organization.
Fields
Sync
Sync a fork with its upstream repository.
Trait Implementations§
Source§impl Debug for RepoCommand
impl Debug for RepoCommand
Source§impl FromArgMatches for RepoCommand
impl FromArgMatches for RepoCommand
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 RepoCommand
impl Subcommand for RepoCommand
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 RepoCommand
impl RefUnwindSafe for RepoCommand
impl Send for RepoCommand
impl Sync for RepoCommand
impl Unpin for RepoCommand
impl UnsafeUnpin for RepoCommand
impl UnwindSafe for RepoCommand
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