KinoShell (kino_shell v0.1.1)
Summary
Functions
Executes a shell command and returns the result.
Helper function to print Terminal output using a Kino frame.
Functions
Link to this function
exec(exe, args, on_stdout_stderr, opts \\ [:stream])
Executes a shell command and returns the result.
Examples
iex> KinoShell.exec("echo", ["Hello world"], fn output -> IO.puts(output) end)
Hello world
0
Link to this function
print_to_frame(frame, text)
Helper function to print Terminal output using a Kino frame.
## Examples
frame = Kino.Frame.new() |> Kino.render()
KinoShell.print_to_frame(frame, "hello")
KinoShell.print_to_frame(frame, [:green, " world"])