pub enum RepoCommands {
Show 23 variants
List {
workspace: Option<String>,
limit: u32,
role: Option<String>,
query: Option<String>,
sort: Option<String>,
page: Option<u32>,
},
View {
repo: String,
web: bool,
},
Clone {
repo: String,
dir: Option<String>,
},
Create {
workspace: String,
name: Option<String>,
description: Option<String>,
public: bool,
project: Option<String>,
fork_policy: Option<String>,
language: Option<String>,
issues: Option<bool>,
wiki: Option<bool>,
website: Option<String>,
main_branch: Option<String>,
},
Update {
repo: String,
name: Option<String>,
description: Option<String>,
private: bool,
public: bool,
language: Option<String>,
fork_policy: Option<String>,
issues: Option<bool>,
wiki: Option<bool>,
website: Option<String>,
main_branch: Option<String>,
},
Move {
repo: String,
project: String,
},
Fork {
repo: String,
workspace: Option<String>,
name: Option<String>,
},
Delete {
repo: String,
yes: bool,
},
Watchers {
repo: String,
limit: u32,
},
Forks {
repo: String,
limit: u32,
},
Download {
command: DownloadCommands,
},
Branch {
command: BranchCommands,
},
Tag {
command: TagCommands,
},
Commit {
command: CommitCommands,
},
File {
command: FileCommands,
},
Webhook {
command: WebhookCommands,
},
BranchRestriction {
command: BranchRestrictionCommands,
},
Reviewer {
command: ReviewerCommands,
},
Permission {
command: PermissionCommands,
},
DeployKey {
command: DeployKeyCommands,
},
Environment {
command: EnvironmentCommands,
},
Deployment {
command: DeploymentCommands,
},
BranchingModel {
command: BranchingModelCommands,
},
}Variants§
List
List repositories in a workspace
Fields
View
View repository details
Clone
Clone a repository
Fields
Create
Create a new repository
Fields
workspace: StringWorkspace slug, workspace/name, or just the repository name
when –workspace or a default workspace supplies the workspace
Update
Update repository settings
Fields
Move
Move a repository to a different project in its workspace
Fork
Fork a repository
Fields
Delete
Delete a repository
Watchers
List users watching a repository
Fields
Forks
List forks of a repository
Fields
Download
Manage repository downloads (uploaded file artifacts)
Fields
command: DownloadCommandsBranch
Manage repository branches
Fields
command: BranchCommandsTag
Manage repository tags
Fields
command: TagCommandsCommit
Work with repository commits
Fields
command: CommitCommandsFile
Browse repository files and file contents
Fields
command: FileCommandsWebhook
Manage repository webhooks
Fields
command: WebhookCommandsBranchRestriction
Manage branch restrictions (branch permissions)
Fields
command: BranchRestrictionCommandsReviewer
Manage default reviewers
Fields
command: ReviewerCommandsPermission
Inspect repository user and group permissions
Fields
command: PermissionCommandsDeployKey
Manage repository deploy keys
Fields
command: DeployKeyCommandsEnvironment
Manage deployment environments
Fields
command: EnvironmentCommandsDeployment
View repository deployments
Fields
command: DeploymentCommandsBranchingModel
Manage the repository branching model
Fields
command: BranchingModelCommandsImplementations§
Trait Implementations§
Source§impl FromArgMatches for RepoCommands
impl FromArgMatches for RepoCommands
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>
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>
ArgMatches to self.Source§impl Subcommand for RepoCommands
impl Subcommand for RepoCommands
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
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
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for RepoCommands
impl RefUnwindSafe for RepoCommands
impl Send for RepoCommands
impl Sync for RepoCommands
impl Unpin for RepoCommands
impl UnsafeUnpin for RepoCommands
impl UnwindSafe for RepoCommands
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more