by cmckn · 3y ago · 0 comments
You also don’t have any error handling.
Also, i wouldn't recommend a thing that you have to copy into your repo. Better to just have wrappers like this that live in your personal bin directory and get run from within the folder.
so, to summarize:
1. nifty idea
2. most of the steps are easier via gh
3. don't copy scripts into a dir, to run them. just leave them in your path.
This is not a (classic) unix cli tool, as it was some month before. Do you think anyone will be ever able to make a codereview? Like done for git [1]?
[0] https://github.com/cli/cli/blob/trunk/go.mod
[1] https://x41-dsec.de/security/research/news/2023/01/17/git-se...
On the other side: a simple and easy to understand plaintext curl one-liner.