Skip to content

Commit ba71276

Browse files
committed
Change Core.set_output to take content first
(it makes it easier to use in pipes where the content is likely to float through stages)
1 parent 61a4e3a commit ba71276

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/command_line.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defmodule ElixirScript.CommandLine do
1313
print_help()
1414
else
1515
result = ScriptRunner.run(get_script())
16-
Core.set_output("result", result)
16+
Core.set_output(result, "result")
1717
Logger.debug("Result output: #{inspect(result, limit: :infinity, printable_limit: :infinity)}")
1818
end
1919
end

lib/core.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule ElixirScript.Core do
3232
end
3333
end
3434

35-
def set_output(name, value) do
35+
def set_output(value, name) do
3636
if System.get_env("GITHUB_OUTPUT") do
3737
EnvironmentFileCommand.issue_file_command(
3838
"OUTPUT",

0 commit comments

Comments
 (0)