mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-23 01:52:40 +08:00
13 lines
329 B
Elixir
13 lines
329 B
Elixir
defmodule AppBuilder.Utils do
|
|
@moduledoc false
|
|
|
|
def cmd!(bin, args, opts \\ []) do
|
|
opts = Keyword.put_new(opts, :into, IO.stream())
|
|
{_, 0} = System.cmd(bin, args, opts)
|
|
end
|
|
|
|
def shell!(command, opts \\ []) do
|
|
opts = Keyword.put_new(opts, :into, IO.stream())
|
|
{_, 0} = System.shell(command, opts)
|
|
end
|
|
end
|