- Write a Shell in C
- HexDocs - Port
- Writing a C port that can talk directly to your Elixir system
- Writing a command line application in Elixir
- use OptionParser to parse args
- use IO.ANSI for color
- use System.halt(code) to exit with an error code
- use ExUnit.CaptureIO to capture terminal output for testing
If available in Hex, the package can be installed
by adding exsh
to your list of dependencies in mix.exs
:
def deps do
[{:exsh, "~> 0.1.0"}]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/exsh.