← all modules

Std.Cli

Std.Cli
  Std.Cli — one-shot / interactive CLI backend (Layer 3 Sky source).

Types
  type AppConfig = AppConfig_OPAQUE

Values
  config : { init : a -> ( model, Cmd msg ) , update : msg -> model -> ( model, Cmd msg ) , view : model -> render , subscriptions : model -> Sub msg } -> AppConfig model msg
      Build the app config from the four required fields. `view` renders a
  program : AppConfig model msg -> Task Error ()
      Run the CLI TEA loop until it exits.
  readPassword : () -> Task Error String
      Read one line from stdin with terminal echo disabled (passwords never
  withOnLine : (String -> msg) -> AppConfig model msg -> AppConfig model msg
      Attach a stdin-line handler — `onLine line` yields a `msg` per line read.