News for hackers. Stuff that matters.
Re:Show HN: I made a tool, create GitHub Repository from loc... by cmckn on Tuesday January 17, 2023 @09:02PM (#34422527)
I love a little bash script as much as anyone, but the official GitHub CLI is a better choice here, as it handles authentication with the API much more smoothly. Even if you just used it to make authenticated API calls, it’d be preferable to curl.

You also don’t have any error handling.

Re:Show HN: I made a tool, create GitHub Repository from loc... by masukomi on Tuesday January 17, 2023 @09:54PM (#34422895)
this. i'm all for little utility scripts like this but it'd be much easier to do with gh

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.

Re:Show HN: I made a tool, create GitHub Repository from loc... by shunak on Tuesday January 17, 2023 @10:29PM (#34423114)
Thx ! I'll modify this programme for the better one.
Re:Show HN: I made a tool, create GitHub Repository from loc... by codesniperjoe on Wednesday January 18, 2023 @12:23PM (#34429739)
In general I would tend to agree, but have lately took a look at the gh dependencies this tool draws in today? [0]

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.