pub struct KnowledgeArgs {
pub repo: RepoArgs,
pub command: KnowledgeCommand,
pub format: OutputFormat,
}Expand description
majordomus knowledge. What the knowledge deriver left for review and whether it is
still writing. The deriver itself is the shell tool’s (lib/knowledge.sh); this reads
what it wrote — the candidate records under the tracked knowledge section, one record by
id with its references resolved, and the derivation status of this checkout — through the
knowledge_base capabilities, so the command line answers what HTTP and MCP answer.
§Example
use majordomus_cli::cli::{Cli, Command, KnowledgeArgs};
use clap::Parser;
let cli = Cli::try_parse_from(["majordomus", "knowledge", "status", "--format", "json"]).unwrap();
let Command::Knowledge(args) = cli.command else { panic!("not the knowledge command") };
let _: KnowledgeArgs = args;Fields§
§repo: RepoArgsWhere and how the repository is read.
command: KnowledgeCommandcandidates, record or status. Required: the group runs nothing of its own, so
that every runnable path here is one a capability declares rather than one
classified command-line-only in cli::local.
format: OutputFormatOutput shape
Trait Implementations§
Source§impl Args for KnowledgeArgs
impl Args for KnowledgeArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Debug for KnowledgeArgs
impl Debug for KnowledgeArgs
Source§impl FromArgMatches for KnowledgeArgs
impl FromArgMatches for KnowledgeArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for KnowledgeArgs
impl RefUnwindSafe for KnowledgeArgs
impl Send for KnowledgeArgs
impl Sync for KnowledgeArgs
impl Unpin for KnowledgeArgs
impl UnsafeUnpin for KnowledgeArgs
impl UnwindSafe for KnowledgeArgs
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