Skip to content

Commit ce80742

Browse files
committed
Provide for "enable_debug" option for Picus.
1 parent ac8cbdb commit ce80742

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

audithub_client/api/start_picus_v2_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class StartPicusV2TaskArgs:
2323
solver_timeout: Optional[int] = None
2424
time_limit: Optional[int] = None
2525
assume_deterministic: Optional[list[str]] = None
26+
enable_debug: Optional[bool] = None
2627

2728

2829
def api_start_picus_v2_task(context: AuditHubContext, input: StartPicusV2TaskArgs):

audithub_client/scripts/start_picus_v2_task.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from ..api.start_picus_v2_task import StartPicusV2TaskArgs, api_start_picus_v2_task
77
from ..library.invocation_common import (
88
AuditHubContextType,
9+
BooleanArg,
910
OrganizationIdType,
1011
ProjectIdType,
1112
TaskWaitType,
@@ -28,6 +29,7 @@ def start_picus_v2_task(
2829
solver_timeout: Optional[int] = None,
2930
time_limit: Optional[int] = None,
3031
assume_deterministic: Optional[list[str]] = None,
32+
enable_debug: Optional[BooleanArg] = None,
3133
wait: TaskWaitType = False,
3234
rpc_context: AuditHubContextType,
3335
):
@@ -61,6 +63,9 @@ def start_picus_v2_task(
6163
An optional list of modules inside the selected source file.
6264
Tells Picus to assume the list of modules provided are deterministic.
6365
66+
enable_debug:
67+
Enable the Picus debug option
68+
6469
"""
6570
try:
6671
rpc_input = StartPicusV2TaskArgs(
@@ -73,6 +78,7 @@ def start_picus_v2_task(
7378
solver_timeout=solver_timeout,
7479
time_limit=time_limit,
7580
assume_deterministic=assume_deterministic,
81+
enable_debug=enable_debug,
7682
)
7783
logger.debug("Starting...")
7884
logger.debug(str(input))

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "audithub-client"
3-
version = "1.1.7"
3+
version = "1.1.8"
44
description = "A Python client that can access Veridise AuditHub via its REST API, providing CLI access"
55
authors = ["Nikos Chondros <nikos@veridise.com>"]
66
license = "AGPLv3"

0 commit comments

Comments
 (0)