Skip to content

Commit 4a42ec2

Browse files
committed
chore: update cli main to add test command only in dev environment
1 parent 6040179 commit 4a42ec2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/app/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from app.commands.version.command import main_version_callback, version_app
1616
from app.commands.version.version import VersionCommand
1717
from app.utils.message import application_add_completion, application_description, application_name, application_version_help
18+
from app.utils.config import Config
1819

1920
app = typer.Typer(
2021
name=application_name,
@@ -80,7 +81,10 @@ def main(
8081
app.add_typer(install_app, name="install")
8182
app.add_typer(uninstall_app, name="uninstall")
8283
app.add_typer(version_app, name="version")
83-
app.add_typer(test_app, name="test")
84+
85+
config = Config()
86+
if config.is_development():
87+
app.add_typer(test_app, name="test")
8488

8589
if __name__ == "__main__":
8690
app()

0 commit comments

Comments
 (0)