pub enum CapacityCommand {
List,
Show {
reference: String,
scope: Option<String>,
},
Set {
scope: String,
id: String,
value: i64,
unit: String,
disabled: bool,
},
Delete {
scope: String,
id: String,
},
Calculate {
scope: String,
id: String,
warnings: bool,
},
Snapshot {
cycle: String,
warnings: bool,
},
}Variants§
List
List every configured ceiling, one tab-separated row per entry
Columns: id, scope, reference, display, capacity, unit,
enabled. The header prints even with no entries, so an empty section is
visibly empty rather than indistinguishable from a failure.
Show
Show one ceiling by the reference it names
A reference is a cycle’s name or stable id, a team label, or an assignee
identity; --scope narrows it when one reference names two scopes.
Fields
Set
Set one scope’s ceiling; validated before persistence
The scope and the unit are explicit: a value with no unit, a unit no board
declares, an unknown cycle/team, or a second ceiling for one scope is
refused before tix.toml changes.
Fields
Delete
Delete one scope’s ceiling
Fields
Calculate
Calculate one scope’s committed/completed/remaining/overflow/utilization
Every value comes from the shared calculation DTO; a value the calculation
could not derive prints as -, never as a zero. Findings go to stderr.
Fields
Snapshot
Read back a closed cycle’s immutable capacity evidence
Trait Implementations§
Source§impl Clone for CapacityCommand
impl Clone for CapacityCommand
Source§impl Debug for CapacityCommand
impl Debug for CapacityCommand
Source§impl FromArgMatches for CapacityCommand
impl FromArgMatches for CapacityCommand
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 CapacityCommand
impl Subcommand for CapacityCommand
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 CapacityCommand
impl RefUnwindSafe for CapacityCommand
impl Send for CapacityCommand
impl Sync for CapacityCommand
impl Unpin for CapacityCommand
impl UnsafeUnpin for CapacityCommand
impl UnwindSafe for CapacityCommand
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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