pub enum WorkspaceAction {
Dump(DumpArgs),
Show(ShowArgs),
AllowCreate(AllowCreateArgs),
RevokeCreate(PatternArg),
AllowDelete(PatternArg),
RevokeDelete(PatternArg),
GrantCrossLink(CrossLinkArgs),
RevokeCrossLink(CrossLinkArgs),
SetMutations(SetMutationsArgs),
}Expand description
Subcommands under memstead workspace.
Variants§
Dump(DumpArgs)
Emit a JSON document describing the workspace’s mems, the
schema each is pinned to, and per-mem opaque snapshot tokens.
Output is always JSON (the global --json is a no-op here).
Show(ShowArgs)
Render the active workspace configuration: mem-management
allowlists, cross-mem permissions, mutation policy, plugin
sections. Markdown by default; --json emits a structured
document. Counterpart to the allow-create / grant-cross-link / set-mutations write surface — read what those commands have
composed.
AllowCreate(AllowCreateArgs)
Add a [[mem_management.create]] allowlist rule. Pattern
uses gitignore-style globs (* does not cross /, **
matches zero-or-more segments). Schemas pin which schemas the
agent may bring into existence under this namespace; --schema *
allows any schema. Order: appended (lowest priority) by
default; --before <pattern> lifts it above the named pattern.
RevokeCreate(PatternArg)
Remove a [[mem_management.create]] rule by pattern.
AllowDelete(PatternArg)
Add a [[mem_management.delete]] allowlist rule.
RevokeDelete(PatternArg)
Remove a [[mem_management.delete]] rule by pattern.
GrantCrossLink(CrossLinkArgs)
Grant a [cross_mem_links] permission: <from> may write
edges into <to>. <to> is * for the wildcard shape or a
mem name for the allowlist shape. Mixing the two for one
from-mem is rejected.
RevokeCrossLink(CrossLinkArgs)
Revoke a [cross_mem_links] permission. Removes the named
target from the allowlist; drops the from-key entirely when
the allowlist becomes empty. * revokes the wildcard shape.
SetMutations(SetMutationsArgs)
Set a [mutations] field. Today exposes --require-notes
only; additional keys land additively.
Trait Implementations§
Source§impl Debug for WorkspaceAction
impl Debug for WorkspaceAction
Source§impl FromArgMatches for WorkspaceAction
impl FromArgMatches for WorkspaceAction
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 WorkspaceAction
impl Subcommand for WorkspaceAction
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 WorkspaceAction
impl RefUnwindSafe for WorkspaceAction
impl Send for WorkspaceAction
impl Sync for WorkspaceAction
impl Unpin for WorkspaceAction
impl UnsafeUnpin for WorkspaceAction
impl UnwindSafe for WorkspaceAction
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
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