Skip to main content

Module services

Module services 

Source
Expand description

Library-level service entrypoints built on the core ports. Small embeddable service-layer command surface.

This module exists for callers that want osp-style command parsing and DSL pipelines without bootstrapping the full CLI host or REPL runtime.

High level flow:

  • parse a narrow service command grammar
  • execute it against abstract crate::ports traits
  • optionally apply trailing DSL stages to the returned rows

Contract:

  • this layer is intentionally small and port-driven
  • richer host concerns like plugin dispatch, prompt handling, and terminal rendering belong elsewhere

Public API shape:

Structs§

ServiceContext
Embeddable execution inputs for the small service-layer command API.

Enums§

ParsedCommand
Parsed subset of commands understood by execute_line.

Functions§

execute_command
Executes a parsed service-layer command against the configured LDAP port.
execute_line
Executes one service-layer command line and applies any trailing DSL stages.
parse_repl_command
Interprets tokenized service-layer input using the minimal LDAP command grammar.