5 ms·
A 1000 line YARN lock file for something that would be roughly 20 lines of bash is amazing and terrifying at the same time.
by Foxboron 6y ago
A 1000 line YARN lock file for something that would be roughly 20 lines of bash is amazing and terrifying at the same time.
- gnagatomo 6y agoCan you show us your take on the bash solution?
- cdubzzz 6y agoLet’s see the 20 lines of bash that replicate all the features of this utility. Should fit in an HN comment nicely.
- boogies 6y ago> roughly 20 lines of bash various permutations of which were posted an hour ago and are currently higher than this comment, so I’m confused why multiple people asked to see them ~30½ minutes ago
- cdubzzz 6y agoI asked because none of the posted permutations offer the same feature set. Specifically, the nice thing about this utility (and reason for the dependencies) is interactive adding and selecting of identities. If this can replicated in bash, I am legitimately interested in seeing it, 20 lines or not.
- Foxboron 6y agoImplement the `git identity` portion listed earlier with a `identity-list` utilizing `git config --get-regexp`. If you need interactivity you can tie it together with fzf and some awk.
- cdubzzz 6y agoSo, not a 20 line bash script and at least two big dependencies. Sounds a lot like what you were poking fun at.
- lprd 6y agoWelcome to modern javascript development.