File tree Expand file tree Collapse file tree 3 files changed +29
-25
lines changed
Expand file tree Collapse file tree 3 files changed +29
-25
lines changed Original file line number Diff line number Diff line change 1+ set -euo pipefail
2+
3+ log () {
4+ echo " $@ " >&2
5+ }
6+
7+ trace () {
8+ log " Running:" " ${@@ Q} "
9+ " $@ "
10+ }
11+
12+ effect () {
13+ log -en " \e[33m"
14+ if [[ -z " ${PROD:- } " ]]; then
15+ log " Skipping effect:" " ${@@ Q} "
16+ # If there's stdin, show it
17+ if read -t 0 _; then
18+ sed " s/^/[stdin] /" >&2
19+ fi
20+ else
21+ trace " $@ "
22+ fi
23+ log -en " \e[0m"
24+ }
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- set -euo pipefail
3- shopt -s nullglob
42
5- log () {
6- echo " $@ " >&2
7- }
3+ source " $( dirname -- " ${BASH_SOURCE[0]} " ) " /common.sh
84
9- trace () {
10- log " Running:" " ${@@ Q} "
11- " $@ "
12- }
13-
14- effect () {
15- log -en " \e[33m"
16- if [[ -z " ${PROD:- } " ]]; then
17- log " Skipping effect:" " ${@@ Q} "
18- # If there's stdin, show it
19- if read -t 0 _; then
20- sed " s/^/[stdin] /" >&2
21- fi
22- else
23- trace " $@ "
24- fi
25- log -en " \e[0m"
26- }
5+ shopt -s nullglob
276
287usage () {
298 log " Usage: $0 ORG ACTIVITY_REPO MEMBER_REPO DIR NOTICE_CUTOFF CLOSE_CUTOFF"
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- set -euo pipefail
2+
3+ source " $( dirname -- " ${BASH_SOURCE[0]} " ) " /common.sh
34
45usage () {
5- echo >&2 " Usage: $0 ORG TEAM DIR"
6+ log " Usage: $0 ORG TEAM DIR"
67 exit 1
78}
89
You can’t perform that action at this time.
0 commit comments