Skip to main content

IssueCommands

Enum IssueCommands 

Source
pub enum IssueCommands {
Show 20 variants List { repo: String, state: Option<IssueStateArg>, kind: Option<IssueKindArg>, priority: Option<IssuePriorityArg>, assignee: Option<String>, reporter: Option<String>, query: Option<String>, sort: Option<String>, page: Option<u32>, limit: u32, }, View { repo: String, id: u64, comments: bool, web: bool, }, Create { repo: String, title: String, body: Option<String>, kind: IssueKindArg, priority: IssuePriorityArg, assignee: Option<String>, component: Option<String>, milestone: Option<String>, version: Option<String>, }, Edit { repo: String, id: u64, title: Option<String>, body: Option<String>, kind: Option<IssueKindArg>, priority: Option<IssuePriorityArg>, assignee: Option<String>, state: Option<IssueStateArg>, }, Delete { repo: String, id: u64, yes: bool, }, Comment { repo: String, id: u64, body: String, }, Comments { repo: String, id: u64, limit: u32, }, EditComment { repo: String, id: u64, comment_id: u64, body: String, }, DeleteComment { repo: String, id: u64, comment_id: u64, yes: bool, }, Changes { repo: String, id: u64, limit: u32, }, Vote { repo: String, id: u64, }, Unvote { repo: String, id: u64, }, Watch { repo: String, id: u64, }, Unwatch { repo: String, id: u64, }, Components { repo: String, }, Milestones { repo: String, }, Versions { repo: String, }, Attachment { command: AttachmentCommands, }, Close { repo: String, id: u64, }, Reopen { repo: String, id: u64, },
}

Variants§

§

List

List issues

Fields

§repo: String

Repository in format workspace/repo-slug

§state: Option<IssueStateArg>

Filter by state

§kind: Option<IssueKindArg>

Filter by kind

§priority: Option<IssuePriorityArg>

Filter by priority

§assignee: Option<String>

Filter by assignee account id

§reporter: Option<String>

Filter by reporter account id

§query: Option<String>

Raw BBQL query (overrides the individual filter flags)

§sort: Option<String>

Sort field, e.g. “-updated_on”

§page: Option<u32>

Page number

§limit: u32

Number of results (capped at 100)

§

View

View issue details

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§comments: bool

Also show the issue’s comments

§web: bool

Open in browser

§

Create

Create a new issue

Fields

§repo: String

Repository in format workspace/repo-slug

§title: String

Issue title

§body: Option<String>

Issue description

§kind: IssueKindArg

Issue type

§priority: IssuePriorityArg

Issue priority

§assignee: Option<String>

Assignee account id

§component: Option<String>

Component name

§milestone: Option<String>

Milestone name

§version: Option<String>

Version name

§

Edit

Edit an issue’s fields

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§title: Option<String>

New title

§body: Option<String>

New description

§kind: Option<IssueKindArg>

New kind

§priority: Option<IssuePriorityArg>

New priority

§assignee: Option<String>

New assignee account id

§state: Option<IssueStateArg>

New state

§

Delete

Delete an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§yes: bool

Skip confirmation prompt

§

Comment

Add a comment to an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§body: String

Comment text

§

Comments

List comments on an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§limit: u32

Number of results (capped at 100)

§

EditComment

Edit a comment on an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§comment_id: u64

Comment ID

§body: String

New comment text

§

DeleteComment

Delete a comment from an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§comment_id: u64

Comment ID

§yes: bool

Skip confirmation prompt

§

Changes

List the change log of an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§limit: u32

Number of results (capped at 100)

§

Vote

Vote for an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§

Unvote

Remove your vote from an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§

Watch

Watch an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§

Unwatch

Stop watching an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§

Components

List the components defined in the issue tracker

Fields

§repo: String

Repository in format workspace/repo-slug

§

Milestones

List the milestones defined in the issue tracker

Fields

§repo: String

Repository in format workspace/repo-slug

§

Versions

List the versions defined in the issue tracker

Fields

§repo: String

Repository in format workspace/repo-slug

§

Attachment

Manage files attached to an issue

Fields

§

Close

Close an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

§

Reopen

Reopen an issue

Fields

§repo: String

Repository in format workspace/repo-slug

§id: u64

Issue ID

Implementations§

Source§

impl IssueCommands

Source

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

Trait Implementations§

Source§

impl FromArgMatches for IssueCommands

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 IssueCommands

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