-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.sh
executable file
·62 lines (47 loc) · 1.1 KB
/
tasks.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env make.sh
version=0.0.4-dev # script-mpe
# Script subcmd's funcs and vars
# See $scriptname help to get started
tasks__list()
{
echo TODO: google, redmine, local target, todotxtmachine
}
tasks__update()
{
req_vars HTDIR
cp $HTDIR/to/do.list $HTDIR/to/do.list.ro
cat $HTDIR/to/do.list.ro | while read id descr
do
case "$id" in
[-*+] ) # list-item:
;;
. ) # class?
;;
"#" ) # id or comment.. srcid?
;;
esac
echo "$id"
done
}
# Generic subcmd's
tasks_als____version=version
tasks_als___V=version
tasks_grp__version=ctx-main\ ctx-std
tasks_als____help=help
tasks_als___h=help
tasks_grp__help=ctx-main\ ctx-std
tasks__edit()
{
$EDITOR $0 $(which $base.py) "$@"
}
tasks_als___e=edit
## Main parts
MAKE-HERE
INIT_ENV="init-log 0 0-src 0-u_s 0-1-lib-sys 0-std ucache scriptpath box"
INIT_LIB="os sys main str shell meta box date doc table remote tasks std stdio match log src src-htd"
main-local
failed= dry_run= tasks_session_id
main-unload
clean_failed || unload_ret=1 ; unset failed
main-epilogue
# Id: script-mpe/0.0.4-dev tasks.sh