whiteinge/ok.sh

Normalize user & repo usage?

Closed this issue · 2 comments

Some API calls use a single user/repo arg and some use separate user & repo args. This is annoying to work with because you have to look up the docs for each. Should ok.sh normalize on one format?

Follow-up Q: it's also annoying to pipe one ok.sh invocation to another because you have to repeat the user/repo info in each one. If we normalize this format could we automatically fill those values out for subsequent invocations somehow? Or perhaps pull them from env variables for all invocations?

Annoying, yes, but probably more trouble than it's worth to actually solve. For repeat invocations we can just set env vars (https://github.com/whiteinge/ok.sh/pull/90/files).