summaryrefslogtreecommitdiffstats
path: root/assets/bin/ass
blob: 27e5c6f3d2df27070084091b1ea6bf9603333c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

set -euf

# TODO REPO=...
# TODO check if $REPO is the right one
# TODO sanity-check arguments
# TODO commit changes; pull and push $REPO

JOURNAL="/krebs/db/truth"

METHOD="$1"
shift

case $METHOD in
"create")
  echo "`date --utc --rfc-3339=ns` create $1" | tee -a $JOURNAL
;;
"set")
  echo "`date --utc --rfc-3339=ns` set $1 $2 $3" | tee -a $JOURNAL 
;;
*)
  echo "you are made of stupid!"
  exit 23
;;
esac