Skip to content

Commit

Permalink
chore: update to typer v0.12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond-u committed Aug 20, 2024
1 parent d93885f commit c5efebd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/lungo_cli/commands/base.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from pathlib import Path
from typing import Annotated, Final, Optional
from typing import Annotated, Final

from typer import Option

ConfigDirType: Final = Annotated[
Optional[Path], Option("--config-dir", "-c", help="Path to the configuration directory.", show_default=False)
Path | None, Option("--config-dir", "-c", help="Path to the configuration directory.", show_default=False)
]
DevType: Final = Annotated[bool, Option("--dev", help="Use the development configuration.", show_default=False)]
ForceInitType: Final = Annotated[bool, Option("--force-init", help="Do a fresh initialization.", show_default=False)]
Expand Down
4 changes: 2 additions & 2 deletions src/lungo_cli/commands/down.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Annotated, Optional
from typing import Annotated

from typer import Option

Expand All @@ -10,7 +10,7 @@

def main(
container_tool: Annotated[
Optional[EContainer], Option("--container-tool", help="Container management tool to use.", show_default=False)
EContainer | None, Option("--container-tool", help="Container management tool to use.", show_default=False)
] = None,
config_dir: ConfigDirType = None,
dev: DevType = False,
Expand Down
4 changes: 2 additions & 2 deletions src/lungo_cli/commands/list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Annotated, Optional
from typing import Annotated

from rich.table import Table
from typer import Argument
Expand All @@ -10,7 +10,7 @@

def main(
args: Annotated[
Optional[list[str]],
list[str] | None,
Argument(
help="Names of the plugins to list.",
show_default=False,
Expand Down
4 changes: 2 additions & 2 deletions src/lungo_cli/commands/up.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Annotated, Optional
from typing import Annotated

from typer import Option

Expand All @@ -12,7 +12,7 @@
def main(
build_only: Annotated[bool, Option("--build-only", help="Only build the containers.", show_default=False)] = False,
container_tool: Annotated[
Optional[EContainer], Option("--container-tool", help="Container management tool to use.", show_default=False)
EContainer | None, Option("--container-tool", help="Container management tool to use.", show_default=False)
] = None,
render_only: Annotated[
bool, Option("--render-only", help="Only render the templates.", show_default=False)
Expand Down

0 comments on commit c5efebd

Please sign in to comment.