pub enum MeshRoleAction {
Set {
role: String,
json: bool,
},
Get {
peer: Option<String>,
json: bool,
},
List {
json: bool,
},
Clear {
json: bool,
},
}Expand description
v0.6.4: subcommands of wire mesh role.
Variants§
Set
Assign self to a role. Role is a free-form ASCII string
(alphanumeric + - + _, max 32 chars). Operators agree on
the vocabulary out-of-band — common starters: planner,
executor, reviewer, coder, tester, dispatcher.
Get
Read self or a peer’s role. With no arg, prints self. With a handle, reads from the peer’s pinned agent-card.
List
List roles across every sister session on this machine. Reads each session’s agent-card by path — no network, no env mutation.
Clear
Remove self from any assigned role. Re-signs the card with
profile.role: null.
Trait Implementations§
Source§impl Debug for MeshRoleAction
impl Debug for MeshRoleAction
Source§impl FromArgMatches for MeshRoleAction
impl FromArgMatches for MeshRoleAction
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Subcommand for MeshRoleAction
impl Subcommand for MeshRoleAction
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for MeshRoleAction
impl RefUnwindSafe for MeshRoleAction
impl Send for MeshRoleAction
impl Sync for MeshRoleAction
impl Unpin for MeshRoleAction
impl UnsafeUnpin for MeshRoleAction
impl UnwindSafe for MeshRoleAction
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
Mutably borrows from an owned value. Read more