-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
358 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Command for loading a calendar.""" | ||
from jupiter.cli.command.command import LoggedInReadonlyCommand | ||
from jupiter.core.use_cases.application.calendar.load_for_date_and_period import ( | ||
CalendarLoadForDateAndPeriodResult, | ||
CalendarLoadForDateAndPeriodUseCase, | ||
) | ||
from jupiter.core.use_cases.infra.use_cases import AppLoggedInReadonlyUseCaseContext | ||
from rich.console import Console | ||
|
||
|
||
class CalendarShow( | ||
LoggedInReadonlyCommand[ | ||
CalendarLoadForDateAndPeriodUseCase, CalendarLoadForDateAndPeriodResult | ||
] | ||
): | ||
"""Command for loading a calendar.""" | ||
|
||
def _render_result( | ||
self, | ||
console: Console, | ||
context: AppLoggedInReadonlyUseCaseContext, | ||
result: CalendarLoadForDateAndPeriodResult, | ||
) -> None: | ||
console.print(result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/core/jupiter/core/use_cases/application/calendar/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Use cases for the calendar application.""" |
Oops, something went wrong.