Skip to main content

ProblemAction

Enum ProblemAction 

Source
pub enum ProblemAction {
    New {
        title: String,
        priority: String,
        parent: Option<String>,
        milestone: Option<String>,
        force: bool,
        tags: Vec<String>,
    },
    List {
        status: Option<String>,
        tree: bool,
        milestone: Option<String>,
        search: Option<String>,
        assignee: Option<String>,
        tag: Option<String>,
        sort: String,
        json: bool,
    },
    Show {
        problem_id: String,
        json: bool,
    },
    Edit {
        problem_id: String,
        title: Option<String>,
        status: Option<String>,
        priority: Option<String>,
        parent: Option<String>,
        add_tag: Option<String>,
        remove_tag: Option<String>,
        set_tags: Option<Vec<String>>,
    },
    Tree {
        problem_id: Option<String>,
    },
    Solve {
        problem_id: String,
        github_close: bool,
    },
    Dissolve {
        problem_id: String,
        reason: Option<String>,
        github_close: bool,
    },
    Assign {
        problem_id: String,
        to: Option<String>,
    },
    Reopen {
        problem_id: String,
    },
    Duplicate {
        problem_id: String,
        of: String,
    },
    Graph {
        milestone: Option<String>,
        all: bool,
    },
}

Variants§

§

New

Create a new problem

Fields

§title: String

Problem title (the question to answer)

§priority: String

Priority: critical, high, medium (default), low

§parent: Option<String>

Parent problem ID — makes this a sub-problem

§milestone: Option<String>

Milestone to assign this problem to

§force: bool

Skip duplicate-detection checks

§tags: Vec<String>

Comma-separated tags (e.g., –tags backend,auth,size:L)

§

List

List problems with optional filters

Fields

§status: Option<String>

Filter by status: open, in_progress, solved, dissolved

§tree: bool

Show problems as a hierarchy tree

§milestone: Option<String>

Filter to problems in a specific milestone

§search: Option<String>

Filter by title keyword

§assignee: Option<String>

Filter by assignee

§tag: Option<String>

Filter by tag (case-insensitive exact match)

§sort: String

Sort by: priority, status, created, title

§json: bool

Output as JSON

§

Show

Show details for a problem

Fields

§problem_id: String

Problem ID, short prefix, or fuzzy title (e.g., “auth bug”, 01957d)

§json: bool

Output as JSON

§

Edit

Edit a problem’s title, status, or priority

Fields

§problem_id: String

Problem ID, short prefix, or fuzzy title

§title: Option<String>

New title

§status: Option<String>

New status: open, in_progress, solved, dissolved

§priority: Option<String>

New priority: critical, high, medium, low

§parent: Option<String>

New parent problem (re-parents this as a sub-problem)

§add_tag: Option<String>

Add a tag

§remove_tag: Option<String>

Remove a tag

§set_tags: Option<Vec<String>>

Replace all tags (comma-separated; empty string clears tags)

§

Tree

Show problems as a hierarchy tree

Fields

§problem_id: Option<String>

Root problem to start from (default: all root problems)

§

Solve

Mark a problem solved (requires an approved solution or all sub-problems solved)

Fields

§problem_id: String

Problem ID, short prefix, or fuzzy title

§github_close: bool

Close the linked GitHub issue after solving

§

Dissolve

Dissolve a problem — mark it as based on false premises, not truly a problem

Fields

§problem_id: String

Problem ID, short prefix, or fuzzy title

§reason: Option<String>

Explanation of why the problem turned out to be misconceived

§github_close: bool

Close the linked GitHub issue after dissolving

§

Assign

Assign a problem to yourself or someone else

Fields

§problem_id: String

Problem ID, short prefix, or fuzzy title

§to: Option<String>

Assignee (defaults to your jj identity)

§

Reopen

Reopen a solved or dissolved problem (transition back to open)

Fields

§problem_id: String

Problem ID, short prefix, or fuzzy title

§

Duplicate

Mark a problem as a duplicate of another — dissolves it with a back-reference

Fields

§problem_id: String

The duplicate problem to dissolve (ID, prefix, or title)

§of: String

The canonical problem this is a duplicate of (ID, prefix, or title)

§

Graph

Render problem hierarchy as ASCII DAG

Fields

§milestone: Option<String>

Filter to problems in a specific milestone

§all: bool

Include solved and dissolved problems

Trait Implementations§

Source§

impl FromArgMatches for ProblemAction

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 ProblemAction

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, 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, 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.