Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neverendingqs/gh-n
Custom GitHub CLI extension for @neverendingqs.
https://github.com/neverendingqs/gh-n
gh-extension
Last synced: about 7 hours ago
JSON representation
Custom GitHub CLI extension for @neverendingqs.
- Host: GitHub
- URL: https://github.com/neverendingqs/gh-n
- Owner: neverendingqs
- License: apache-2.0
- Created: 2021-10-17T21:40:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-27T21:18:01.000Z (about 3 years ago)
- Last Synced: 2024-11-10T14:52:54.361Z (about 2 months ago)
- Topics: gh-extension
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# gh-n
Custom GitHub CLI extension. Probably only useful for me.
## Template
```bash
#!/bin/bash
set -eecho "Hello gh-n!"
# Snippets to help get started:
# Determine if an executable is in the PATH
# if ! type -p ruby >/dev/null; then
# echo "Ruby not found on the system" >&2
# exit 1
# fi# Pass arguments through to another command
# gh issue list "$@" -R cli/cli# Using the gh api command to retrieve and format information
# QUERY='
# query($endCursor: String) {
# viewer {
# repositories(first: 100, after: $endCursor) {
# nodes {
# nameWithOwner
# stargazerCount
# }
# }
# }
# }
# '
# TEMPLATE='
# {{- range $repo := .data.viewer.repositories.nodes -}}
# {{- printf "name: %s - stargazers: %v\n" $repo.nameWithOwner $repo.stargazerCount -}}
# {{- end -}}
# '
# exec gh api graphql -f query="${QUERY}" --paginate --template="${TEMPLATE}"
```