Skip to content

Commit

Permalink
feat: cli
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Sep 28, 2023
1 parent 9b8f0aa commit 65c36a8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/services_test4/__main__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import sys

try:
import typer # noqa: F401
from services_test4.cli import app

app(prog_name="services-test4")
except ImportError:
print("Please install 'services-test4[cli]' to use this command.")
sys.exit(0)

from services_test4.cli import app

app(prog_name="services-test4")
sys.exit(1)

0 comments on commit 65c36a8

Please sign in to comment.