<#61 Request: Ability to pass json to pact-message...
# pact-ruby-standalone
g
#61 Request: Ability to pass json to pact-message via standard in Issue created by TimothyJones Pre issue-raising checklist I have already (please mark the applicable with an
x
): • Upgraded to the latest version of the relevant libraries • Checked to see if the issue has already been raised Software versions • pact-ruby-standalone: 1.88.26 Request Currently,
pact-message
expects the content JSON to be passed as a command line parameter:
Copy code
pact-message update MESSAGE_JSON --consumer=CONSUMER --pact-dir=PACT_DIR --provider=PROVIDER
JSON in a command line param is difficult to quote correctly on windows (I haven't found a library that works for all cases yet). It would be awesome if we could work around this by having the option to pass the content via standard in:
Copy code
pact-message update MESSAGE_JSON --consumer=CONSUMER --pact-dir=PACT_DIR --provider=PROVIDER
or
echo "$MESSAGE_JSON" | pact-message update --consumer=CONSUMER --pact-dir=PACT_DIR --provider=PROVIDER
pact-foundation/pact-standalone