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
CommandLine (Tuple String String)
CommandLine (ShellState w o m)
#ShellState Source
newtype ShellState :: Row Type -> Type -> (Type -> Type) -> Type
newtype ShellState w o m
Constructors
ShellState { command :: String, commandEnv :: Array (Command w o m), foreground :: Maybe (ProcessHandle w o m), prompt :: String }
Instances
CommandLine (ShellState w o m)
#ProcessHandle Source
type ProcessHandle :: Row Type -> Type -> (Type -> Type) -> Type
type 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 }
#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