Skip to main content

CycleScheduleCommand

Enum CycleScheduleCommand 

Source
pub enum CycleScheduleCommand {
Show 15 variants List, Show { schedule: String, }, Create(CycleScheduleCreateArgs), Edit { schedule: String, args: CycleScheduleEditArgs, confirm: bool, }, Delete { schedule: String, confirm: bool, }, Detect { date: Option<String>, }, Generate { schedule: String, through: Option<String>, confirm: bool, }, Close { schedule: String, args: CycleScheduleReasonArgs, }, Reopen { schedule: String, args: CycleScheduleReasonArgs, }, Extend { schedule: String, args: CycleScheduleExtendArgs, }, Skip { schedule: String, args: CycleScheduleReasonArgs, }, Pause { schedule: String, args: CycleScheduleLifecycleArgs, }, Resume { schedule: String, args: CycleScheduleLifecycleArgs, }, AdjustFuture { schedule: String, args: CycleScheduleReasonArgs, }, Ignore { schedule: String, args: CycleScheduleLifecycleArgs, },
}
Expand description

The tix cycle schedule subcommands (mission repeating-cycle-schedules-01M3C7W1, WP06).

The surface contract’s spelling (contracts/cli-surface.md): a schedule namespace under tix cycle, with stable-ID selectors, explicit date/timezone context and confirmed mutations. This enum is a thin adapter — the schedule record, the read model, evaluation, generation and the lifecycle all live in crate::cycle_schedule; nothing here re-derives a cadence, a cursor or a History entry.

Variants§

§

List

List schedules, one tab-separated row per schedule

Columns: id, name, state, cadence, duration, start_date, look_ahead, next_sequence, generated.

§

Show

Show one schedule: identity, cadence, duration, cursor and its instances

Fields

§schedule: String

Stable schedule id, or its unique display name

§

Create(CycleScheduleCreateArgs)

Define a new repeating schedule; validated before persistence, requires --confirm

§

Edit

Change a schedule’s fields, keeping its stable id; requires --confirm

Only the flags you name change; the rest of the record (including its generation cursor and preserved metadata) is carried over.

Fields

§schedule: String

Stable schedule id, or its unique display name

§confirm: bool

Confirm the change without prompting

§

Delete

Delete a schedule’s registry entry; requires --confirm

The generated cycles it created and their snapshots are not deleted: they keep their schedule reference, which then reads as a diagnosable missing schedule, so nothing is destroyed by deleting a definition.

Fields

§schedule: String

Stable schedule id, or its unique display name

§confirm: bool

Confirm the deletion without prompting

§

Detect

Report ended/due/look-ahead warnings, read-only

Prints the warnings and the explicit decisions each accepts. It writes nothing: no file, no cursor move, no History entry.

Fields

§date: Option<String>

Evaluate against this YYYY-MM-DD date instead of today

§

Generate

Create the schedule’s future cycles; idempotent, requires --confirm

A repeated call under the same stable keys is a no-op, never a duplicate.

Fields

§schedule: String

Stable schedule id, or its unique display name

§through: Option<String>

Generate every candidate whose start date is on or before this date

§confirm: bool

Confirm the generation without prompting

§

Close

Close an instance: capture its immutable snapshot and mark it closed

Fields

§schedule: String

Stable schedule id, or its unique display name

§

Reopen

Reopen a closed instance: restore active and append one History event

The closed cycle’s capacity snapshot is not rewritten: it stays the immutable evidence the close captured, and the appended cycle_reopened event names it. Reopening an open instance is a no-op, and the action requires both a reason and the instance it names.

Fields

§schedule: String

Stable schedule id, or its unique display name

§

Extend

Push an instance’s due date out by a cadence period

Fields

§schedule: String

Stable schedule id, or its unique display name

§

Skip

Record a sequence as skipped so it is never regenerated

Fields

§schedule: String

Stable schedule id, or its unique display name

§

Pause

Pause a schedule and its non-terminal instances

Fields

§schedule: String

Stable schedule id, or its unique display name

§

Resume

Resume a paused schedule and its instances

Fields

§schedule: String

Stable schedule id, or its unique display name

§

AdjustFuture

Re-derive every future instance’s dates from the schedule’s definition

Fields

§schedule: String

Stable schedule id, or its unique display name

§

Ignore

Close a warning without deciding anything; nothing is written

Fields

§schedule: String

Stable schedule id, or its unique display name

Trait Implementations§

Source§

impl Clone for CycleScheduleCommand

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CycleScheduleCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for CycleScheduleCommand

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 CycleScheduleCommand

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.