mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 09:28:31 +02:00
rename jrnl.py to controller.py
This commit is contained in:
parent
9985c8a87a
commit
36a22352c6
4 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ if TYPE_CHECKING:
|
|||
from jrnl.Entry import Entry
|
||||
|
||||
|
||||
def run(args: "Namespace"):
|
||||
def start(args: "Namespace"):
|
||||
"""
|
||||
Flow:
|
||||
1. Run standalone command if it doesn't require config (help, version, etc), then exit
|
|
@ -7,7 +7,7 @@ import traceback
|
|||
|
||||
from rich.logging import RichHandler
|
||||
|
||||
from jrnl import jrnl
|
||||
from jrnl import controller
|
||||
from jrnl.args import parse_args
|
||||
from jrnl.exception import JrnlException
|
||||
from jrnl.messages import Message
|
||||
|
@ -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 = jrnl.run(args)
|
||||
status_code = controller.start(args)
|
||||
|
||||
except JrnlException as e:
|
||||
status_code = 1
|
||||
|
|
|
@ -144,7 +144,7 @@ def mock_overrides(config_in_memory):
|
|||
|
||||
return {
|
||||
"overrides": lambda: patch(
|
||||
"jrnl.jrnl.apply_overrides", side_effect=my_overrides
|
||||
"jrnl.controller.apply_overrides", side_effect=my_overrides
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import pytest
|
|||
|
||||
import jrnl
|
||||
from jrnl.args import parse_args
|
||||
from jrnl.jrnl import _display_search_results
|
||||
from jrnl.controller import _display_search_results
|
||||
|
||||
|
||||
@pytest.fixture
|
Loading…
Add table
Reference in a new issue