stoobly-agent 1.0.11__py3-none-any.whl → 1.0.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
stoobly_agent/__init__.py CHANGED
@@ -1,2 +1,2 @@
1
1
  COMMAND = 'stoobly-agent'
2
- VERSION = '1.0.11'
2
+ VERSION = '1.0.12'
@@ -21,6 +21,7 @@ LOG_ID = 'WorkflowRunCommand'
21
21
 
22
22
  class UpOptions(TypedDict):
23
23
  attached: bool
24
+ exit_code_from: str
24
25
  namespace: str
25
26
 
26
27
  class WorkflowRunCommand(WorkflowCommand):
@@ -128,6 +129,9 @@ class WorkflowRunCommand(WorkflowCommand):
128
129
 
129
130
  if not options.get('attached'):
130
131
  command.append('-d')
132
+ else:
133
+ if options.get('exit_code_from'):
134
+ command.append(f"--exit-code-from {options['exit_code_from']}")
131
135
 
132
136
  command.append('--build')
133
137
  command.append('--pull always')
@@ -319,6 +319,7 @@ def logs(**kwargs):
319
319
  @click.option('--detached', is_flag=True, help='If set, will not run the highest priority service in the foreground.')
320
320
  @click.option('--filter', multiple=True, type=click.Choice([WORKFLOW_CUSTOM_FILTER]), help='Select which service groups to run. Defaults to all.')
321
321
  @click.option('--dry-run', default=False, is_flag=True, help='If set, prints commands.')
322
+ @click.option('--exit-code-from', help='Name of container service to obtain exit code from.')
322
323
  @click.option('--extra-compose-path', help='Path to extra compose configuration files.')
323
324
  @click.option('--log-level', default=INFO, type=click.Choice([DEBUG, INFO, WARNING, ERROR]), help='''
324
325
  Log levels can be "debug", "info", "warning", or "error"
@@ -384,7 +385,7 @@ def run(**kwargs):
384
385
  # By default, the entrypoint service should be last
385
386
  # However, this can change if the user has configured a service's priority to be higher
386
387
  attached = not kwargs['detached'] and index == len(commands) - 1
387
- exec_command = command.up(attached=attached, namespace=kwargs['namespace'])
388
+ exec_command = command.up(attached=attached, exit_code_from=kwargs['exit_code_from'], namespace=kwargs['namespace'])
388
389
  if not exec_command:
389
390
  continue
390
391
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: stoobly-agent
3
- Version: 1.0.11
3
+ Version: 1.0.12
4
4
  Summary: Record, mock, and test HTTP(s) requests. CLI agent for Stoobly
5
5
  License: Apache-2.0
6
6
  Author: Matt Le
@@ -1,4 +1,4 @@
1
- stoobly_agent/__init__.py,sha256=4ndlBfDCZW8uz1Z5ZYihu_3hi9biEC-Z6NJUmmeJqvI,45
1
+ stoobly_agent/__init__.py,sha256=fpNnGTz0zD56l0rzU3F6VxKtLU_SjNTBMAXJgelQlwA,45
2
2
  stoobly_agent/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  stoobly_agent/app/api/__init__.py,sha256=ctkB8KR-eXO0SFhj602huHiyvQ3PslFWd8fkcufgrAI,1000
4
4
  stoobly_agent/app/api/application_http_request_handler.py,sha256=jf4fkqjOiCeI2IM5Ro7ie0v_C6y0-7-5TIE_IKMPOfg,5513
@@ -188,9 +188,9 @@ stoobly_agent/app/cli/scaffold/workflow_copy_command.py,sha256=R9hh5dWVz7vGld7pE
188
188
  stoobly_agent/app/cli/scaffold/workflow_create_command.py,sha256=5xnRYrVb2KlSDARZFjLGGWeURXRu63OHoRLEhO-EAvw,3401
189
189
  stoobly_agent/app/cli/scaffold/workflow_env.py,sha256=x8V5pJmIiklD3f2q2-qq-CORf4YaXYq_r2JpR2MmSwk,416
190
190
  stoobly_agent/app/cli/scaffold/workflow_log_command.py,sha256=FN-XyMVnulbassBuqeB21J_PQnOsr_LNs0Dg2tcDkjg,435
191
- stoobly_agent/app/cli/scaffold/workflow_run_command.py,sha256=CTa-JcaTtIwXvGXeVmvgAYEXnvAh9NnbWK_iXtRSnOU,7107
191
+ stoobly_agent/app/cli/scaffold/workflow_run_command.py,sha256=08E7fFnyTn6N9lgQVxzopWkYl7t_LOs9cGIoWh2GvKg,7251
192
192
  stoobly_agent/app/cli/scaffold/workflow_validate_command.py,sha256=fhHciJXg_u32Wmh8us8LhgQj8D1SxkBADtuBBF4K0FM,4377
193
- stoobly_agent/app/cli/scaffold_cli.py,sha256=3bMMw5M2uTk0Z3KUB3VGyS9JiS3TCaEpbDSeL6RHUZI,18568
193
+ stoobly_agent/app/cli/scaffold_cli.py,sha256=3cKiFyDNs__Uz0pIeLFdAgMtH9lpHtNpNaQBb55Z-3Q,18703
194
194
  stoobly_agent/app/cli/scenario_cli.py,sha256=3J1EiJOvunkfWrEkOsanw-XrKkOk78ij_GjBlE9p7CE,8229
195
195
  stoobly_agent/app/cli/snapshot_cli.py,sha256=XNxpTm5z3bnBGNGI3_XZIif0ypN62WqYfDmShL5fXg4,9965
196
196
  stoobly_agent/app/cli/trace_cli.py,sha256=K7E-vx3JUcqEDSWOdIOi_AieKNQz7dBfmRrVvKDkzFI,4605
@@ -721,8 +721,8 @@ stoobly_agent/test/mock_data/scaffold/docker-compose-local-service.yml,sha256=x7
721
721
  stoobly_agent/test/mock_data/scaffold/index.html,sha256=qJwuYajKZ4ihWZrJQ3BNObV5kf1VGnnm_vqlPJzdqLE,258
722
722
  stoobly_agent/test/mock_data/uspto.yaml,sha256=6U5se7C3o-86J4m9xpOk9Npias399f5CbfWzR87WKwE,7835
723
723
  stoobly_agent/test/test_helper.py,sha256=m_oAI7tmRYCNZdKfNqISWhMv3e44tjeYViQ3nTUfnos,1007
724
- stoobly_agent-1.0.11.dist-info/LICENSE,sha256=8QKGyy45eN76Zk52h8gu1DKX2B_gbWgZ3nzDLofEbaE,548
725
- stoobly_agent-1.0.11.dist-info/METADATA,sha256=h-NGNvATfZVk3ILpiL8t3svqHQYCHtkR6RF7U8VCcrw,3426
726
- stoobly_agent-1.0.11.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
727
- stoobly_agent-1.0.11.dist-info/entry_points.txt,sha256=aq5wix5oC8MDQtmyPGU0xaFrsjJg7WH28NmXh2sc3Z8,56
728
- stoobly_agent-1.0.11.dist-info/RECORD,,
724
+ stoobly_agent-1.0.12.dist-info/LICENSE,sha256=8QKGyy45eN76Zk52h8gu1DKX2B_gbWgZ3nzDLofEbaE,548
725
+ stoobly_agent-1.0.12.dist-info/METADATA,sha256=6sEDVBgyenOEFxaPIwnLLqJpmoKELTXHsjgJ3QdcpqA,3426
726
+ stoobly_agent-1.0.12.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
727
+ stoobly_agent-1.0.12.dist-info/entry_points.txt,sha256=aq5wix5oC8MDQtmyPGU0xaFrsjJg7WH28NmXh2sc3Z8,56
728
+ stoobly_agent-1.0.12.dist-info/RECORD,,