This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Provide a way to evaluate a file with code #438
Milestone
Comments
I think a new command, e.g. |
Would it make sense for If yes, then this could be used in a number of ways, including part of a UNIX pipeline:
By the way, how does |
Supporting stdin is also a good idea. |
michaelklishin
changed the title
"rabbitmqctl eval" should be able to take a file as input
Provide a way to evaluate a file with code
Jun 30, 2020
|
This is why I think we should both add a new command to eval a file and support stdin for the command we have. |
michaelklishin
added a commit
that referenced
this issue
Jun 30, 2020
michaelklishin
added a commit
that referenced
this issue
Jun 30, 2020
michaelklishin
added a commit
that referenced
this issue
Jul 1, 2020
for evaluation of scripts in environments where standard input redirection is not an option or problematic, e.g. certain Windows environments. Closes #438
michaelklishin
added a commit
that referenced
this issue
Jul 1, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently you are forced to get shell quoting exactly right, which is very difficult due to the interaction between Erlang syntax and shell quoting rules. On Windows, this becomes even more difficult.
The
eval
subcommand should be able to read Erlang clauses from a file and execute them.The text was updated successfully, but these errors were encountered: