blob: cd0dd5132365f748827bc207dd42715df528a3b6 (
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
|
#!/usr/bin/env bash
# Usage: recit add-project -n my-project
# Summary: Add Project
recfile=$(recit-file)
name=""
while getopts "n:" options; do
case "${options}" in
n)
name=${OPTARG}
;;
:)
echo "Error: -${OPTARG} requires an argument."
exit 1
;;
*)
exit 1
;;
esac
done
fmt_date=$(date '+%Y-%m-%d %r')
recins --verbose -f Id -v "$name" -f Status -v "open" -f Created -v "$fmt_date" -t Project "${recfile}"
|