pub enum RepoCmd {
View {
target: Option<String>,
web: bool,
},
List {
owner: Option<String>,
limit: LimitArgs,
},
Clone {
spec: String,
dir: Option<String>,
ssh: bool,
},
Fork {
add_remote: Option<String>,
},
Create {
name: String,
org: Option<String>,
private: bool,
description: Option<String>,
homepage: Option<String>,
gitignore: Option<String>,
license: Option<String>,
},
Edit {
description: Option<String>,
homepage: Option<String>,
private: bool,
public: bool,
default_branch: Option<String>,
},
Rename {
new_path: String,
},
Star,
Unstar,
Watch,
Unwatch,
Delete {
yes: bool,
},
}Variants§
View
Show repository details. Targets the resolved repo unless given owner/name.
List
List repositories. Bare lists the authenticated user’s; with an arg, lists that user/org’s public repos.
Clone
Clone a repository via git.
Fields
Fork
Fork the resolved repository into your account.
Create
Create a repository under your account or an organization.
Fields
Edit
Edit repository settings. At least one flag is required.
Fields
Rename
Rename a repository’s URL slug (path on the API).
Star
Star the resolved repository.
Unstar
Unstar the resolved repository.
Watch
Watch (subscribe to) the resolved repository.
Unwatch
Unwatch the resolved repository.
Delete
Delete a repository.
Trait Implementations§
Source§impl FromArgMatches for RepoCmd
impl FromArgMatches for RepoCmd
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 RepoCmd
impl Subcommand for RepoCmd
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 RepoCmd
impl RefUnwindSafe for RepoCmd
impl Send for RepoCmd
impl Sync for RepoCmd
impl Unpin for RepoCmd
impl UnsafeUnpin for RepoCmd
impl UnwindSafe for RepoCmd
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