pub enum Commands {
Show 17 variants
Show {
id: u32,
},
List {
type: Option<String>,
grep: Option<String>,
},
Refs {
id: u32,
},
Links {
id: u32,
},
Search {
query: String,
},
Add {
type: Option<String>,
title: Option<String>,
desc: Option<String>,
strict: bool,
},
Deprecate {
id: u32,
to: u32,
},
Edit {
id: u32,
},
Patch {
id: u32,
type: Option<String>,
title: Option<String>,
desc: Option<String>,
strict: bool,
},
Put {
id: u32,
line: String,
strict: bool,
},
Verify {
id: u32,
},
Delete {
id: u32,
force: bool,
},
Lint {
fix: bool,
},
Orphans,
Graph {
id: u32,
},
Prime,
Batch {
input: Option<PathBuf>,
format: String,
dry_run: bool,
fix: bool,
},
}Variants§
Show
Show a node by ID
List
List nodes (optionally filtered)
Refs
Show nodes that reference the given ID
Links
Show nodes that the given ID references
Search
Search nodes by substring
Add
Add a new node
Fields
Deprecate
Deprecate a node, redirecting to another
Edit
Edit a node with $EDITOR
Patch
Patch (partial update) a node: –type, –title, –desc
Put
Put (full-line replace) a node: –line
Verify
Mark a node as needing verification (append verify tag)
Delete
Delete a node by ID; use –force to remove even if referenced
Lint
Lint the mindmap for basic issues (use –fix to auto-fix spacing and type prefixes)
Orphans
Show orphan nodes (no in & no out, excluding META)
Graph
Show graph neighborhood for a node (DOT format for Graphviz)
Prime
Prime: print help and list to prime an AI agent’s context
Batch
Batch mode: apply multiple non-interactive commands atomically
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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