Skip to content

Commit

Permalink
Add prepare and start blocks to App
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclav-2012 committed May 30, 2020
1 parent fdbeebe commit 0d6bf60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ We follow [Semantic Versions](https://semver.org/).
- Add class `App` - the main application class
- Add class `SlowStartRewatchException` - the base class for exceptions
- Set up exception handling
- Add `prepare` and `start` blocks to `App`


## Version 0.1.0
Expand Down
9 changes: 9 additions & 0 deletions slow_start_rewatch/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ def __init__(self, config: Config) -> None:

def run(self) -> None:
"""Runs the application."""
self.prepare()
self.start()

def prepare(self) -> None:
"""Make the preparations for the main run."""
click.echo("Preparing the Slow Start Rewatch...")

def start(self) -> None:
"""Start the main run."""
click.echo("Starting the Slow Start Rewatch...")

0 comments on commit 0d6bf60

Please sign in to comment.