From d6c10173f91ded22ac9263638373cd9614dcf77f Mon Sep 17 00:00:00 2001 From: samuelFain <65926551+samuelFain@users.noreply.github.com> Date: Wed, 15 Jan 2025 18:21:44 +0300 Subject: [PATCH] add generate-test-playbook command to typer in main file --- demisto_sdk/__main__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/demisto_sdk/__main__.py b/demisto_sdk/__main__.py index 123fda1467..4b6021bae7 100644 --- a/demisto_sdk/__main__.py +++ b/demisto_sdk/__main__.py @@ -483,6 +483,16 @@ def register_commands(_args: list[str] = []): # noqa: C901 help="This command generates unit tests automatically from an integration's Python code.", )(generate_unit_tests) + if command_name == "generate-test-playbook" or register_all: + from demisto_sdk.commands.generate_test_playbook.generate_test_playbook_setup import ( + generate_test_playbook, + ) + + app.command( + name="generate-test-playbook", + help="This command generates a test playbook from integration/script YAML arguments.", + )(generate_test_playbook) + # Register relevant commands to Demisto-SDK app based on command-line arguments. args = sys.argv[1:]