about summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-06-16T00·54-0400
committerglittershark <grfn@gws.fyi>2020-06-16T01·54+0000
commit406a66bed11c273d279bc1470d44e80c354f8d98 (patch)
tree50ba61fd09f2192bc08d3ae7f666afb6f782c03a /bin
parent929bb840a6fd007ca6d51e81974b150d25e5eb3a (diff)
feat(gerrit-cli): Add gerrit CLI script r/983
Add a script to run gerrit commands on the depot host, which reads the
gerrit username from the TVL_USERNAME env var or $(whoami) by default.

At some point this may want to solve the configuration problem in a more
general fashion, but for now this seems relatively obvious.

Change-Id: Ied91c1d26daf4770aef74b2e755d1760c486bb7b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/396
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/__dispatch.sh3
l---------bin/gerrit1
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/__dispatch.sh b/bin/__dispatch.sh
index d8214bccd0..eddc208893 100755
--- a/bin/__dispatch.sh
+++ b/bin/__dispatch.sh
@@ -50,6 +50,9 @@ case "${TARGET_TOOL}" in
   depot-build)
     attr="tools.depot-build"
     ;;
+  gerrit)
+    attr="tools.gerrit-cli"
+    ;;
   *)
     echo "The tool '${TARGET_TOOL}' is currently not installed in this repository."
     exit 1
diff --git a/bin/gerrit b/bin/gerrit
new file mode 120000
index 0000000000..8390ec9c96
--- /dev/null
+++ b/bin/gerrit
@@ -0,0 +1 @@
+__dispatch.sh
\ No newline at end of file