From e9a0a03501f0227c55671d13869118c876ba72fb Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Tue, 7 Nov 2023 14:02:36 -0800 Subject: [PATCH] initial commit --- gh-fzf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 gh-fzf diff --git a/gh-fzf b/gh-fzf new file mode 100755 index 0000000..80ad331 --- /dev/null +++ b/gh-fzf @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +set -e + +echo "Hello gh-fzf!" + +# 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}"