about summary refs log tree commit diff
path: root/home/shell/fish/functions/rgerrit.fish
blob: 3aed310f9b7cca21cfbb3746bbc025a3e2a2630f (plain) (blame)
1
2
3
4
5
6
# gerrit runs on tahoe, and we ssh to it through its tailscale
# network interface.
function rgerrit --description "execute gerrit commands"
  set -lx gerrit_host (tailscale status --json | jq -r '.Peer | map(select(.HostName == "tahoe"))[0].TailscaleIPs[0]')
  ssh $gerrit_host -p 29418 gerrit $argv
end