Current section
Files
Jump to
Current section
Files
src/esgleam@internal.erl
-module(esgleam@internal).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([exec_shell/2]).
-export_type([charlist/0]).
-type charlist() :: any().
-spec exec_shell(binary(), binary()) -> nil.
exec_shell(Command, Cwd) ->
_pipe = unicode:characters_to_list(
<<<<<<"cd "/utf8, Cwd/binary>>/binary, ";"/utf8>>/binary,
Command/binary>>
),
os:cmd(_pipe),
nil.