From 6482ba23774b912b290960997a4e9395d3d89925 Mon Sep 17 00:00:00 2001 From: Dan Jones <dan.jones@noc.ac.uk> Date: Wed, 16 Nov 2022 17:22:54 +0000 Subject: [PATCH] docs: use pipenv run instead of pipenv shell Both work but pipenv shell can have side-effects --- README.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b6c2374..fdd1d8c 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,7 @@ Subsequent requests to the client endpoint return the client_id but not the secr ### Setup ``` -pipenv install -pipenv shell +pipenv install ``` ### Running @@ -46,10 +45,8 @@ pipenv shell #### API -In a `pipenv shell` - ``` -python api.py +pipenv run python api.py ``` #### Create some clients @@ -58,24 +55,20 @@ python api.py #### Event bus -In a `pipenv shell` - ``` -python soar_bus.py +pipenv run python soar_bus.py ``` #### Send / Receive directly -In a `pipenv shell` - ``` # Send a message -python client_send.py noc-c2-outbox 'soar.noc.slocum.something' from noc-c2 +pipenv run python client_send.py noc-c2-outbox 'soar.noc.slocum.something' from noc-c2 ``` ``` # Receive messages -python client_read.py noc-sfmc-inbox +pipenv run python client_read.py noc-sfmc-inbox ``` #### Receive via API -- GitLab