pub struct Cli {Show 18 fields
pub workspace: Option<PathBuf>,
pub log_file: Option<PathBuf>,
pub log_level: LogLevel,
pub no_color: bool,
pub theme: ThemePreference,
pub registry: String,
pub policies: String,
pub index_path: String,
pub _home_expanded: bool,
pub report: Option<Vec<ReportTypeCli>>,
pub format: OutputFormatCli,
pub workspace_filter: Option<String>,
pub rebuild_index: bool,
pub quiet: bool,
pub validate_config: bool,
pub export_audit: Option<Vec<String>>,
pub web: bool,
pub web_bind: String,
}Expand description
Platform operator console for agentic asset governance.
§Exit codes
0 Success — no violations
1 Compliance failures (violations, content drift, stale threshold, gate failures)
2 Operational error (invalid config, missing registry, bad flags)
3 Partial catalog failure (catalog dir exists but files corrupted)Fields§
§workspace: Option<PathBuf>Path to the workspace root (auto-detected if omitted).
log_file: Option<PathBuf>Path to the log file for audit output.
log_level: LogLevelLogging verbosity level.
no_color: boolDisable colored output (also honoured via NO_COLOR env var).
theme: ThemePreferenceColor theme mode: auto (detect terminal background), dark, or light.
registry: StringPath to the workspace registry TOML file. Bug #3: Tilde (~) expanded after clap processing via expand_home_paths().
policies: StringPath to the policy rules TOML file. Bug #3: Tilde (~) expanded after clap processing via expand_home_paths().
index_path: StringPath to the SQLite index file. Bug #3: Tilde (~) expanded after clap processing via expand_home_paths().
_home_expanded: boolInternal marker: whether home expansion has been applied to default paths.
report: Option<Vec<ReportTypeCli>>Produce a headless report instead of launching the TUI.
Supported types: coverage, violations, drift, stale, gates, integrity, versions, dependencies, lifecycle, summary, all.
format: OutputFormatCliOutput format for headless mode.
Supported formats: json (default), markdown, table.
workspace_filter: Option<String>Restrict headless operations to workspaces matching this glob pattern.
rebuild_index: boolForce a complete index rebuild from a fresh filesystem scan.
quiet: boolSuppress progress output; emit only the final structured report.
validate_config: boolParse all configuration files, report errors, and exit without running.
export_audit: Option<Vec<String>>Export the audit log. Format: <format> <output-path> (e.g. json /tmp/audit.json).
web: boolStart the embedded web server (stretch goal, Req 33).
web_bind: StringWeb server bind address (only used when –web is active).
Implementations§
Source§impl Cli
impl Cli
Sourcepub fn expand_home_paths(&mut self)
pub fn expand_home_paths(&mut self)
Expand home directory (~) in default paths. This should be called after parsing to resolve ~ to the user’s home.
Sourcepub fn is_no_color(&self) -> bool
pub fn is_no_color(&self) -> bool
Returns true when color output should be disabled.
Color is disabled when either --no-color was passed or the
NO_COLOR environment variable is set to any value (per no-color.org,
Req 29.1 / 29.3). This only affects formatting; it never alters report
data (Req 27.4).
Sourcepub fn report_types(&self) -> Vec<ReportType>
pub fn report_types(&self) -> Vec<ReportType>
Convert the CLI --report list into models::ReportType values.
Sourcepub fn output_format(&self) -> OutputFormat
pub fn output_format(&self) -> OutputFormat
Convert the CLI --format into models::OutputFormat.
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
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 CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
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