Skip to content

Commit e53f788

Browse files
committed
added debug option 'tree'
1 parent 16bbae0 commit e53f788

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

notes

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ cmd_config () {
380380
cat $CONFIGFILE
381381
}
382382

383+
cmd_tree () {
384+
tree ${NOTESDIR} | ${PAGER}
385+
}
386+
383387
cmd_view () {
384388
myoptions="$@"
385389
if [ "$1" = "" ]; then
@@ -560,7 +564,7 @@ EOF
560564

561565
#########################
562566
# #
563-
# MAIN PROGRAM #
567+
# MAIN PROGRAM #
564568
# #
565569
#########################
566570

@@ -570,14 +574,15 @@ COMMAND="$1"
570574
case "$1" in
571575
init) shift; cmd_init "$@" ;;
572576
config) shift; cmd_config "$@" ;;
577+
tree) shift; cmd_tree ;;
573578
licence|license) shift; cmd_licence "$@" ;;
574579
default) shift; cmd_default "$@" ;;
575580
use) shift; cmd_use "$@" ;;
576581
newkey) shift; cmd_newkey "$@" ;;
577582
help|--help) shift; cmd_usage "$@" ;;
578583
version|--version) shift; cmd_version "$@" ;;
579584
show|ls|list) shift; cmd_show "$@" ;;
580-
view|cat) shift; cmd_view "$@" ;;
585+
view|cat) shift; cmd_view "$@" ;;
581586
find|search) shift; cmd_find "$@" ;;
582587
grep) shift; cmd_grep "$@" ;;
583588
insert|add) shift; cmd_insert "$@" ;;

0 commit comments

Comments
 (0)