loki v1.2.2 Loki.Cmd

Executing terminal commands helpers.

Summary

Functions

Execute shell command with Env variables as options

Execute shell command with Env variables as options in given path

Format execution output for reading in shell

Functions

execute(string)
execute(String.t) :: {Collectable.t, exit_status :: non_neg_integer}
execute(any) :: none

Execute shell command with Env variables as options.

execute(string, opts)
execute(String.t, Keyword.t) :: {Collectable.t, exit_status :: non_neg_integer}
execute_in_path(any)
execute_in_path(any) :: none
execute_in_path(string, path)
execute_in_path(String.t, Path.t) :: {Collectable.t, exit_status :: non_neg_integer}

Execute shell command with Env variables as options in given path.

execute_in_path(string, path, opts)
execute_in_path(String.t, Path.t, Keyword.t) :: {Collectable.t, exit_status :: non_neg_integer}
format_output(arg)
format_output(Tuple.t) :: String.t

Format execution output for reading in shell.