aboutsummaryrefslogtreecommitdiff
path: root/wikijscmd/app.py
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2022-01-23 20:45:32 -0600
committerMark Powers <mark@marks.kitchen>2022-01-23 20:45:32 -0600
commit5ad896564bb220137b500be4549bd5b714a08069 (patch)
treea14bcf25118de976aa431f089a97b76c769343a5 /wikijscmd/app.py
parentbfade5540aa67a98ffd85fcce7ce73053565b869 (diff)
Add last_journal command
Diffstat (limited to 'wikijscmd/app.py')
-rw-r--r--wikijscmd/app.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wikijscmd/app.py b/wikijscmd/app.py
index c16a446..7b2fe0f 100644
--- a/wikijscmd/app.py
+++ b/wikijscmd/app.py
@@ -4,7 +4,7 @@ import sys
import argparse
from wikijscmd.config import config
-from wikijscmd.commands import create, edit, single, tree, today, move, fill_in_pages
+from wikijscmd.commands import create, edit, single, tree, today, move, fill_in_pages, latest_journal_entry
from wikijscmd.tui import tui
def main():
@@ -41,6 +41,9 @@ def main():
parser_journal = subparsers.add_parser("journal", help="create journal pages")
parser_journal.set_defaults(command=fill_in_pages)
+ parser_last_journal = subparsers.add_parser("last_journal", help="check journal pages")
+ parser_last_journal.set_defaults(command=latest_journal_entry)
+
parser_tui = subparsers.add_parser("tui", help="lauch a ncurses interface")
parser_tui.set_defaults(command=tui)