osp-cli 1.5.1

CLI and REPL for querying and managing OSP infrastructure data
Documentation
//! Core primitives shared across the rest of the crate.
//!
//! This module exists to hold small, stable building blocks that many other
//! subsystems need: rows, output/result types, command metadata, shell token
//! handling, fuzzy matching, and a few protocol DTOs.
//!
//! Read this module when you need a shared type that should mean the same thing
//! everywhere else in the crate.
//!
//! Rough map:
//!
//! - [`crate::core::command_def`] describes commands as semantic metadata for help and
//!   catalogs
//! - [`crate::core::command_policy`] answers whether a command should be visible or allowed
//! - [`crate::core::output`] and [`crate::core::output_model`] define the crate's canonical output
//!   shapes
//! - [`crate::core::plugin`] defines the stable wire DTOs shared with external plugins
//! - [`crate::core::row`] is the common row representation used by commands, DSL, and UI
//! - [`crate::core::shell_words`] and [`crate::core::fuzzy`] provide small reusable
//!   parsing/matching
//!   primitives
//!
//! `core` should not become a junk drawer. A type belongs here only if it is
//! genuinely shared, stable in meaning, and lower-level than the feature
//! modules that depend on it.
//!
//! Contract:
//!
//! - types here should stay broadly reusable and free of host-specific logic
//! - `core` can be depended on widely, but it should avoid depending on
//!   higher-level modules like `app`, `repl`, or `ui`

/// Declarative command metadata used for help and policy resolution.
pub mod command_def;
/// Visibility and access-policy evaluation for commands.
pub mod command_policy;
/// Shared Unicode-aware fuzzy matching helpers.
pub mod fuzzy;
/// Output-mode and presentation enums shared across the crate.
pub mod output;
/// Structured row/group/document output types.
pub mod output_model;
/// Plugin protocol DTOs shared across plugin boundaries.
pub mod plugin;
/// Shared row representation used by the DSL and services.
pub mod row;
/// Runtime-mode and verbosity primitives.
pub mod runtime;
/// Shell-like tokenization helpers.
pub mod shell_words;