Skip to main content

Module repl

Module repl 

Source
Expand description

Interactive REPL for alimentar (ALIM-SPEC-006)

Implements the Interactive Andon concept from the CLI & REPL Quality Specification.

§Design Principles (Toyota Way)

  • Genchi Genbutsu (Go and See): Interactive data inspection without compilation
  • Jikotei Kanketsu (Self-completion): Complete data quality tasks in one environment
  • Poka-Yoke (Mistake Proofing): Schema-aware autocomplete prevents invalid input
  • Andon (Visual Control): Color-coded prompts show dataset health status

§Requirements Implemented

  • ALIM-REPL-001: Stateful session with dataset caching
  • ALIM-REPL-002: <100ms response time for metadata queries
  • ALIM-REPL-003: Schema-aware autocomplete with reedline
  • ALIM-REPL-004: Contextual help system
  • ALIM-REPL-005: Batuta pipeline integration hooks
  • ALIM-REPL-006: Reproducible session export
  • ALIM-REPL-007: Progressive disclosure commands

§References

  • [5] Nielsen (1993). Usability Engineering - 100ms response threshold
  • [16] Perez & Granger (2007). IPython - reproducible sessions

Structs§

AndonPrompt
Andon-style prompt for REPL
CommandParser
Parser for REPL commands (Poka-Yoke input validation)
DisplayConfig
Display configuration for REPL output (Mieruka - Visual Control)
ReplSession
Stateful REPL session (ALIM-REPL-001)
SchemaAwareCompleter
Schema-aware completer for Poka-Yoke input validation

Enums§

HealthStatus
Health status for Andon display
ReplCommand
REPL commands matching batch CLI grammar (Standard Work)

Functions§

run
Run the interactive REPL