mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 09:28:31 +02:00
rename start -> run in controller.py
This commit is contained in:
parent
1fb44b4bbd
commit
9bd83f2310
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ if TYPE_CHECKING:
|
||||||
from jrnl.journals import Entry
|
from jrnl.journals import Entry
|
||||||
|
|
||||||
|
|
||||||
def start(args: "Namespace"):
|
def run(args: "Namespace"):
|
||||||
"""
|
"""
|
||||||
Flow:
|
Flow:
|
||||||
1. Run standalone command if it doesn't require config (help, version, etc), then exit
|
1. Run standalone command if it doesn't require config (help, version, etc), then exit
|
||||||
|
|
|
@ -41,7 +41,7 @@ def run(manual_args: list[str] | None = None) -> int:
|
||||||
configure_logger(args.debug)
|
configure_logger(args.debug)
|
||||||
logging.debug("Parsed args:\n%s", args)
|
logging.debug("Parsed args:\n%s", args)
|
||||||
|
|
||||||
status_code = controller.start(args)
|
status_code = controller.run(args)
|
||||||
|
|
||||||
except JrnlException as e:
|
except JrnlException as e:
|
||||||
status_code = 1
|
status_code = 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue