Skip to content

Commit 33507ae

Browse files
committed
refactor: rename to thyme for uniqueness
timeline is way to common of a name for the top-level binary
1 parent 5e37b5f commit 33507ae

9 files changed

Lines changed: 94 additions & 11 deletions

bin/deploy-timelines.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/deploy-timelines.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
set -u
4+
source $(dirname $0)/../libexec/environ.sh
5+
old='deploy-timelines.sh'
6+
new='thyme deploy'
7+
printWarning "$old: deprecated program name; it will be removed in a future release"
8+
printWarning "Use '$new' instead."
9+
sleep 3
10+
exec $new "$@"

bin/error-print.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/error-print.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
set -u
4+
source $(dirname $0)/../libexec/environ.sh
5+
old='error-print.sh'
6+
new='thyme error'
7+
printWarning "$old: deprecated program name; it will be removed in a future release"
8+
printWarning "Use '$new' instead."
9+
sleep 3
10+
exec $new "$@"

bin/run-detectors-timelines.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/run-detectors-timelines.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
set -u
4+
source $(dirname $0)/../libexec/environ.sh
5+
old='run-detectors-timelines.sh'
6+
new='thyme analysis'
7+
printWarning "$old: deprecated program name; it will be removed in a future release"
8+
printWarning "Use '$new' instead."
9+
sleep 3
10+
exec $new "$@"

bin/run-monitoring.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/run-monitoring.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
set -u
4+
source $(dirname $0)/../libexec/environ.sh
5+
old='run-monitoring.sh'
6+
new='thyme histogram'
7+
printWarning "$old: deprecated program name; it will be removed in a future release"
8+
printWarning "Use '$new' instead."
9+
sleep 3
10+
exec $new "$@"

bin/thyme

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -u
5+
source $(dirname $0)/../libexec/environ.sh
6+
7+
sep="================================================================"
8+
usage() {
9+
echo """
10+
$sep
11+
USAGE: $0 [COMMAND] [OPTIONS]...
12+
$sep
13+
Run clas12-timeline commands.
14+
15+
COMMAND: the command to run, one of:
16+
histogram Run the timeline histogramming jobs
17+
analysis Analyze the histograms and generate timelines
18+
deploy Deploy the timelines to the web server
19+
error Scan for errors in Slurm logs
20+
21+
OPTIONS: Each command has its own set of options; run a command with no
22+
additional options to see usage for that command.
23+
24+
""" >&2
25+
}
26+
if [ $# -eq 0 ]; then
27+
usage
28+
exit 101
29+
fi
30+
31+
cmd=$1
32+
shift
33+
34+
case $cmd in
35+
hi*) exec $TIMELINESRC/bin/thyme-histogram "$@" ;;
36+
an*) exec $TIMELINESRC/bin/thyme-analysis "$@" ;;
37+
de*) exec $TIMELINESRC/bin/thyme-deploy "$@" ;;
38+
er*) exec $TIMELINESRC/bin/thyme-error "$@" ;;
39+
-h|--help)
40+
usage
41+
exit 101
42+
;;
43+
*)
44+
printError "unknown command '$cmd'"
45+
exit 100
46+
;;
47+
esac
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sep="================================================================"
2525
usage() {
2626
echo """
2727
$sep
28-
USAGE: $0 [OPTIONS]...
28+
USAGE: thyme analysis [OPTIONS]...
2929
$sep
3030
Creates web-ready detector timelines locally
3131

0 commit comments

Comments
 (0)