{"repo":"whiteinge/ok.sh","free":true,"listed":false,"github":"https://github.com/whiteinge/ok.sh","clone":"git clone https://github.com/whiteinge/ok.sh.git","description":"A Bourne shell GitHub API client library focused on interfacing with shell scripts","language":"Shell","stars":436,"topics":["shell","posix","github","github-api","curl"],"license":"BSD-3-Clause","category":"cli-tools","readme_excerpt":"A GitHub API client library written in POSIX sh https://github.com/whiteinge/ok.sh BSD licensed. Requirements A POSIX environment (tested against Busybox v1.19.4) curl (tested against 7.32.0) Optional requirements jq (tested against 1.3) If jq is not installed commands will output raw JSON; if jq is installed the output will be formatted and filtered for use with other shell tools. Setup Authentication credentials are read from a $HOME/.netrc file on UNIX machines or a netrc file in %HOME% for UNIX environments under Windows. Generate the token on GitHub under \"Account Settings - Applications\". Restrict permissions on that file with chmod 600 /.netrc ! machine api.github.com login password machine uploads.github.com login password Or set an environment GITHUB TOKEN=token Configuration The following environment variables may be set to customize ok.sh. OK SH URL=https://api.github.com Base URL for GitHub or GitHub Enterprise. OK SH ACCEPT=application/vnd.github.v3+json The 'Accept' header to send with each request. OK SH JQ BIN=jq The name of the jq binary, if installed. OK SH VERBOSE=0 The debug logging verbosity level. Same as the verbose flag. OK SH RATE LIMIT=0 Output current GitHub rate limit information to stderr. OK SH DESTRUCTIVE=0 Allow destructive operations without prompting for confirmation. OK SH MARKDOWN=1 Output some text in Markdown format. Usage ok.sh [ ] (command [ , ...]) ok.sh -h # Short, usage help text. ok.sh help # All help text. Warning: long! ok.sh help","default_branch":null,"files":null,"tree":[],"storefront":"/r/whiteinge","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/whiteinge/ok.sh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}