back

by jotaen·3y ago·view on hn ↗
One feedback/idea in regards to the API: instead of using positional arguments, the parameters could also be named flags, i.e. `wfh.sh --user shunak --visibility public`. That’s slightly more verbose, but it would make it easier for the parameters to be optional. For example, the Github username could read its default from an environment variable, because in many cases it probably stays the same anyway. Or, if you don’t specify `--visibility`, then it defaults to `public` (just like on Github).

That way, you could also optionally offer to set the repo name to something different than the folder name, e.g. `--name some-arbitrary-name`.