Skip to main content

CommandProjectContext

Trait CommandProjectContext 

Source
pub trait CommandProjectContext {
    // Required methods
    fn lsp_enabled(&self) -> bool;
    fn lsp_set(&mut self, enabled: bool) -> Result<(), String>;
    fn share_projection(&self) -> ProjectShareProjection;
    fn goal_state(&self) -> ProjectGoalState;
}
Expand description

Host project data for the project command group (FEAT-021 D1).

Exposes the typed, exact-minimum operations the live project handlers consume: /lsp status/set state, /share session payload data, and /goal goal state including the session-derived effective values. /init host data flows through the existing WORKSPACE facet (D2), so /init destructures exactly WORKSPACE (D4) and consumes no project-facet method. All results are contract-owned portable values; implementation errors cross as safe text. The TUI adapter is the only place that touches App, config::config, the goal service, or the session manager.

Required Methods§

Source

fn lsp_enabled(&self) -> bool

/lsp status: whether LSP diagnostics are enabled.

Source

fn lsp_set(&mut self, enabled: bool) -> Result<(), String>

/lsp set: enable or disable LSP diagnostics.

Source

fn share_projection(&self) -> ProjectShareProjection

/share projection: session emptiness, length, model, and mode label.

Source

fn goal_state(&self) -> ProjectGoalState

/goal projection: visible and effective goal state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§