pub enum HealthAction {
Set {
issue: String,
state: String,
actor: Option<String>,
date: Option<String>,
rationale: Option<String>,
},
Show {
issue: String,
},
Rollup {
scope: String,
id: String,
},
Override {
scope: String,
id: String,
state: String,
actor: Option<String>,
date: Option<String>,
rationale: Option<String>,
confirm: bool,
},
History {
scope: String,
},
Board,
}Expand description
The tix triage tree (contracts/cli-surface.md, WP05 T023–T025).
list and status are read-only queue views; the four decision verbs take a
single issue; batch is the selection-shaped twin of tix bulk, preview by
default and writing only under an explicit --apply.
§Why the reason flag is Option on accept and the rest
contracts/decision-history.md splits it: decline, duplicate and defer
require a reason, accept records one when supplied. A required clap argument
on three of the four would make the fourth’s absence look like an oversight,
and — more importantly — the enforcement belongs to the service, which refuses
missing_reason before any write on every surface (NFR-003). The flag is
therefore optional everywhere and the rule is the service’s, so the CLI,
TUI and MCP cannot end up with three different ideas of which decision needs
one. tix triage decline 1 with no --reason still fails, at the service,
with the contract’s own kind.
tix health’s actions.
Variants§
Set
Record an issue’s health state (append-only; needs –rationale)
Writes the frontmatter value and one History entry, together or not at all. Any of the four states is accepted; anything else is refused by name.
Fields
Show
Show one issue’s health: its own value, its derived rollup, its diagnostics
Rollup
Show a scope’s derived health, with its contributors and policy version
Fields
Override
Layer an explicit override over a derived scope’s health
An override is a deliberate act about a whole scope, so it needs --confirm:
it does not replace what the children say, it is recorded over it.
Fields
History
The append-only health History entries about a scope
Board
Every scope’s health, with what contributes to each
Trait Implementations§
Source§impl FromArgMatches for HealthAction
impl FromArgMatches for HealthAction
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 HealthAction
impl Subcommand for HealthAction
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 HealthAction
impl RefUnwindSafe for HealthAction
impl Send for HealthAction
impl Sync for HealthAction
impl Unpin for HealthAction
impl UnsafeUnpin for HealthAction
impl UnwindSafe for HealthAction
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> 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