Clarify why *input* is for one-liners only
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 50/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- clojure
- Domain
- documentation
Research direction
Start at the Babashka book's Scripts section linked in the issue and read the guidance around user/input. Clarify why its shape depends on the command-line flags, including -i versus -I, and distinguish it from in. Done means the section includes this explanatory note without changing the code examples.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Clojure
- Stars
- 67
- Forks
- 37
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from babashka/book
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 3/5 3-5 days Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
IOP tokens release blocker team qa team qa autotests WG adoption
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
penpot/penpot#13540 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
izhangzhihao/intellij-rainbow-brackets#2903 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100