pub struct DoctorCliArgs {
pub remote: Option<String>,
pub json: bool,
pub fail_on_warn: bool,
pub tokens: bool,
pub profile: Option<String>,
pub raw_table: bool,
}Expand description
Arguments for the doctor subcommand. Lives next to Cli so clap
derives them automatically; the actual report logic lives in
cli::doctor::run.
Fields§
§remote: Option<String>Query a remote ai-memory daemon’s HTTP capabilities + stats endpoints instead of opening the local DB. Sections that need raw SQL access render as N/A in this mode.
json: boolEmit the report as JSON instead of human-readable text. Useful
for CI consumers and for jq-style filtering.
fail_on_warn: boolExit 1 when at least one section is at WARN severity. Without this flag, warnings keep exit 0; criticals always exit 2.
tokens: boolv0.6.4-004 — print per-tool, per-family, and per-profile token
costs (cl100k_base) instead of the regular health report.
Combined with --json returns a structured payload for CI.
Combined with --profile <name> reports the cost under that
hypothetical profile in addition to the active default.
profile: Option<String>v0.6.4-004 — when used with --tokens, evaluate cost under this
hypothetical profile. Defaults to core (the v0.6.4 default).
Accepts the same vocabulary as ai-memory mcp --profile.
raw_table: boolv0.6.4-004 — dump the full per-tool size table as JSON. Implies
--tokens. Used by CI and benchmarks to capture the source-of-
truth size data without parsing the rendered report.
Trait Implementations§
Source§impl Args for DoctorCliArgs
impl Args for DoctorCliArgs
Source§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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for DoctorCliArgs
impl FromArgMatches for DoctorCliArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for DoctorCliArgs
impl RefUnwindSafe for DoctorCliArgs
impl Send for DoctorCliArgs
impl Sync for DoctorCliArgs
impl Unpin for DoctorCliArgs
impl UnsafeUnpin for DoctorCliArgs
impl UnwindSafe for DoctorCliArgs
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> 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