Add simple by day-of-week statistics

This commit is contained in:
Nikolay Puzanov
2018-11-28 12:06:46 +03:00
parent 6c647806b4
commit 41f8f43ce5
4 changed files with 87 additions and 5 deletions

View File

@@ -5,12 +5,12 @@ _timer()
case "$COMP_CWORD" in
1)
# Commands
COMPREPLY=( $(compgen -W "start stop report deadline archive unarch refresh timesheet help" -- $uncomplete) )
COMPREPLY=( $(compgen -W "start stop report stats deadline archive unarch refresh timesheet help" -- $uncomplete) )
;;
2)
# Command argument 1
case "${COMP_WORDS[1]}" in
start|archive)
start|archive|stats)
local tasklist=$(timer tasklist)
COMPREPLY=( $(compgen -W "$tasklist" -- $uncomplete))
;;