From 9bd83f2310cada0e8cbc0aa30b139b6f2176587c Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 14 Jan 2023 14:32:37 -0800 Subject: [PATCH] rename start -> run in controller.py --- jrnl/controller.py | 2 +- jrnl/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jrnl/controller.py b/jrnl/controller.py index 8fc4b250..7d7c87ce 100644 --- a/jrnl/controller.py +++ b/jrnl/controller.py @@ -31,7 +31,7 @@ if TYPE_CHECKING: from jrnl.journals import Entry -def start(args: "Namespace"): +def run(args: "Namespace"): """ Flow: 1. Run standalone command if it doesn't require config (help, version, etc), then exit diff --git a/jrnl/main.py b/jrnl/main.py index 714e3843..770690c4 100644 --- a/jrnl/main.py +++ b/jrnl/main.py @@ -41,7 +41,7 @@ def run(manual_args: list[str] | None = None) -> int: configure_logger(args.debug) logging.debug("Parsed args:\n%s", args) - status_code = controller.start(args) + status_code = controller.run(args) except JrnlException as e: status_code = 1