Skip to main content

RepoCommands

Enum RepoCommands 

Source
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

§workspace: Option<String>

Workspace slug (defaults to –workspace or the configured default workspace)

§limit: u32

Number of results per page (max 100)

§role: Option<String>

Filter by the authenticated user’s role on the repository

§query: Option<String>

Filter with a Bitbucket query (BBQL) expression, e.g. ‘language=“rust”’

§sort: Option<String>

Sort by a field, e.g. ‘name’ or ‘-updated_on’ for descending

§page: Option<u32>

Page number to fetch

§

View

View repository details

Fields

§repo: String

Repository in format workspace/repo-slug

§web: bool

Open in browser

§

Clone

Clone a repository

Fields

§repo: String

Repository in format workspace/repo-slug

§dir: Option<String>

Directory to clone into

§

Create

Create a new repository

Fields

§workspace: String

Workspace slug, workspace/name, or just the repository name when –workspace or a default workspace supplies the workspace

§name: Option<String>

Repository name (omit when the first argument already names the repository)

§description: Option<String>

Repository description

§public: bool

Make repository public

§project: Option<String>

Project key to add repository to

§fork_policy: Option<String>

Fork policy: allow_forks, no_public_forks, no_forks (default: allow_forks when –public, no_public_forks otherwise)

§language: Option<String>

Primary language

§issues: Option<bool>

Enable or disable the issue tracker (default: enabled)

§wiki: Option<bool>

Enable or disable the wiki (default: disabled)

§website: Option<String>

Website URL to show on the repository

§main_branch: Option<String>

Main branch name

§

Update

Update repository settings

Fields

§repo: String

Repository in format workspace/repo-slug

§name: Option<String>

New repository name (also changes the repository slug)

§description: Option<String>

New description

§private: bool

Make repository private

§public: bool

Make repository public

§language: Option<String>

Primary language

§fork_policy: Option<String>

Fork policy: allow_forks, no_public_forks, no_forks

§issues: Option<bool>

Enable or disable the issue tracker

§wiki: Option<bool>

Enable or disable the wiki

§website: Option<String>

Website URL to show on the repository

§main_branch: Option<String>

Main branch name

§

Move

Move a repository to a different project in its workspace

Fields

§repo: String

Repository in format workspace/repo-slug

§project: String

Destination project key

§

Fork

Fork a repository

Fields

§repo: String

Repository to fork in format workspace/repo-slug

§workspace: Option<String>

Workspace to fork into

§name: Option<String>

New repository name

§

Delete

Delete a repository

Fields

§repo: String

Repository in format workspace/repo-slug

§yes: bool

Skip confirmation prompt

§

Watchers

List users watching a repository

Fields

§repo: String

Repository in format workspace/repo-slug

§limit: u32

Maximum number of watchers to list (max 100)

§

Forks

List forks of a repository

Fields

§repo: String

Repository in format workspace/repo-slug

§limit: u32

Maximum number of forks to list (max 100)

§

Download

Manage repository downloads (uploaded file artifacts)

Fields

§

Branch

Manage repository branches

Fields

§

Tag

Manage repository tags

Fields

§command: TagCommands
§

Commit

Work with repository commits

Fields

§

File

Browse repository files and file contents

Fields

§

Webhook

Manage repository webhooks

Fields

§

BranchRestriction

Manage branch restrictions (branch permissions)

§

Reviewer

Manage default reviewers

Fields

§

Permission

Inspect repository user and group permissions

Fields

§

DeployKey

Manage repository deploy keys

Fields

§

Environment

Manage deployment environments

Fields

§

Deployment

View repository deployments

Fields

§

BranchingModel

Manage the repository branching model

Implementations§

Source§

impl RepoCommands

Source

pub async fn run(self) -> Result<()>

Trait Implementations§

Source§

impl FromArgMatches for RepoCommands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for RepoCommands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more