Skip to content

ciaran16/shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell (In development)

Lets you create interactive shells in OCaml.

Example

open Shell.Commands

let echo_cmd =
  let echo = Lwt_io.printl in
  let arg = Arg.pos ~predict:(fun _ -> ["Hello world"]) () in
  Command.(create "echo" echo $ arg)

let commands = Map.empty |> Map.add echo_cmd

let () =
  Lwt_main.run (Shell_unix.run commands)

About

Lets you create interactive shells in OCaml.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages