Module

Halogen.XShell.CommandLine

Package
purescript-halogen-xterm
Repository
grybiena/halogen-xterm

A collection of command line interface building utilities. See example implementation for a usage example.

#CommandLine Source

class CommandLine shell  where

Members

Instances

#ShellState Source

newtype ShellState :: Row Type -> Type -> (Type -> Type) -> Typenewtype ShellState w o m

Constructors

Instances

#ProcessHandle Source

type ProcessHandle :: Row Type -> Type -> (Type -> Type) -> Typetype ProcessHandle w o m = { kill :: ShellM w (ShellState w o m) o m Unit, stdin :: String -> ShellM w (ShellState w o m) o m Unit }

#Command Source

type Command :: Row Type -> Type -> (Type -> Type) -> Typetype Command w o m = { cmd :: Array String -> ShellM w (ShellState w o m) o m Unit, description :: Array String, name :: String }

#commandLine Source

commandLine :: forall w s o m. MonadEffect m => CommandLine s => ShellM w s o m Unit -> String -> ShellM w s o m Unit

#backspace Source

backspace :: forall w s o m. MonadEffect m => CommandLine s => ShellM w s o m Unit

#textInterpreter Source

textInterpreter :: forall w s o m. MonadEffect m => (String -> ShellM w s o m Unit) -> Output -> ShellM w s o m Unit

#runRepl Source

runRepl :: forall w s o m. MonadEffect m => CommandLine s => (String -> ShellM w s o m String) -> ShellM w s o m Unit

#canceler Source

canceler :: forall w o m. MonadAff m => MonadRec m => Output -> ShellM w (ShellState w o m) o m Unit

#cancel Source

cancel :: forall w o m. MonadAff m => MonadRec m => ShellM w (ShellState w o m) o m Unit

#attach Source

attach :: forall w o m. MonadAff m => ShellM w (ShellState w o m) o m Unit

#commandMap Source

commandMap :: forall w o m. MonadAff m => MonadRec m => Array (Command w o m) -> Map String (Array String -> ShellM w (ShellState w o m) o m Unit)

#prog Source

prog :: forall w o m. MonadAff m => MonadRec m => Array (Command w o m) -> ShellM w (ShellState w o m) o m Unit