pub struct Planning {
pub prefix: &'static str,
pub core: &'static [&'static str],
pub refused: fn(&str) -> Option<String>,
pub creates: &'static [&'static str],
pub current_env: Option<&'static str>,
pub toward_tasks: fn(bool) -> &'static [&'static str],
pub revises: Option<&'static str>,
pub checks: Option<&'static str>,
pub explores: Option<&'static str>,
pub explore_paths: fn(&str) -> bool,
pub explore_commands: &'static [&'static [&'static str]],
}Expand description
Hosted planning skills.
Fields§
§prefix: &'static strThe prefix installed skills carry (plan runs <prefix>plan).
core: &'static [&'static str]Skills whose before_<name> / after_<name> hooks run.
refused: fn(&str) -> Option<String>Why a skill is not hosted, and what to use instead.
creates: &'static [&'static str]Core skills that create a new unit (Spec Kit: specify): they get
no current-unit variable, and the unit they create becomes current.
current_env: Option<&'static str>The variable the format’s own scripts read the current unit from
(Spec Kit: SPECIFY_FEATURE_DIRECTORY), passed to planning commands.
toward_tasks: fn(bool) -> &'static [&'static str]The skills that lead from what exists to a task list, given whether
a plan exists (Spec Kit: plan, tasks).
revises: Option<&'static str>The skill that revises a written spec from a person’s comments
(Spec Kit: clarify), if the format has one.
checks: Option<&'static str>The skill that checks the planning files for consistency (Spec
Kit: analyze), if the format has one.
explores: Option<&'static str>The skill that explores an idea before a spec (OpenSpec:
explore), if the format has one; spec explore hosts it
read-only, else speccoder’s own fallback.
explore_paths: fn(&str) -> boolWhat that skill may write: the format’s own exploration artifacts.
explore_commands: &'static [&'static [&'static str]]The read-only commands it may run (argv prefixes).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Planning
impl Freeze for Planning
impl RefUnwindSafe for Planning
impl Send for Planning
impl Sync for Planning
impl Unpin for Planning
impl UnsafeUnpin for Planning
impl UnwindSafe for Planning
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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