hlfw.ca

task

ref: 7ff209324645dddf92a9f15045b21c62a0a4518a
dir: /show/

View raw version
#!/bin/rc -e
rfork ne

fn gettags {
	# Push to showlist
	for(a in $*)
		if(test -s .pro/task/$a)
			showlist=($showlist $a)
}

fn pretty {

}

fn showtask {
	for(m in $showlist){
		if (~ $#raw 1)
			cat $m
		if not
			pretty $m
		}
}

# Just pretty print a task, nothing to it
flagfmt='r:raw'; args='[tags ...]'
eval `''{aux/getflags $*} || exec aux/usage

showlist=()

@{
	gettags
	showtask
} || echo 'unable to show given tags:' $status >[1=2]
exit ''