Skip to main content

tix/cli/
cli_mentions.rs

1#[allow(clippy::wildcard_imports)]
2use super::*;
3
4/// The `tix mentions` verbs.
5///
6/// `list` and `show` are read-only. `read` is the one mutating answer; `ignore` is
7/// deliberately the **absence** of a write, which is what makes the mention show
8/// again the next time the issue is opened.
9#[derive(Subcommand)]
10pub enum MentionsAction {
11    /// List the mentions pending for you
12    List,
13    /// Print one mention in full
14    Show {
15        /// Mention id, as shown by `tix mentions list`
16        id: String,
17    },
18    /// Mark a mention read, so it is never shown again
19    Read {
20        /// Mention id, as shown by `tix mentions list`
21        id: String,
22    },
23    /// Leave a mention pending (writes nothing; it shows again later)
24    Ignore {
25        /// Mention id, as shown by `tix mentions list`
26        id: String,
27    },
28    /// Print where a mention sits in its issue
29    Jump {
30        /// Mention id, as shown by `tix mentions list`
31        id: String,
32    },
33}