You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
9:21 AM
jumar In https://book.babashka.org/#_scripts there's this:
When writing scripts instead of one-liners on the command line, it is not recommended to use input
May ask about more details why this isn't recommended?
E.g. Nate uses user/input in his scripts: https://github.com/justone/bb-scripts/blob/master/src/comb.clj#L31
src/comb.clj:31
(->> (map (partial process options) user/input) https://github.com/justone/bb-scripts|justone/bb-scriptsjustone/bb-scripts | Added by GitHub
9:23 AM
borkdude @jumar I prefer not to since it's not obvious from the script what the corresponding i/o flags on the command line should be
New
9:24 AM
jumar Ah, so the shape of input will vary depending on -i vs -I but in stays the same, right?
It would be great to add a little note to the babashka book's section referenced above
9:25 AM
borkdude ok, will do
The text was updated successfully, but these errors were encountered:
9:21 AM
jumar In https://book.babashka.org/#_scripts there's this:
When writing scripts instead of one-liners on the command line, it is not recommended to use input
May ask about more details why this isn't recommended?
E.g. Nate uses user/input in his scripts: https://github.com/justone/bb-scripts/blob/master/src/comb.clj#L31
src/comb.clj:31
(->> (map (partial process options) user/input)
https://github.com/justone/bb-scripts|justone/bb-scriptsjustone/bb-scripts | Added by GitHub
9:23 AM
borkdude @jumar I prefer not to since it's not obvious from the script what the corresponding i/o flags on the command line should be
New
9:24 AM
jumar Ah, so the shape of input will vary depending on -i vs -I but in stays the same, right?
It would be great to add a little note to the babashka book's section referenced above
9:25 AM
borkdude ok, will do
The text was updated successfully, but these errors were encountered: