I have a question about pact-broker interface. Why...
# pact-broker
f
I have a question about pact-broker interface. Why the pact-broker cli in windows has the command like this:
Copy code
pact-broker can-i-merge --pacticipant <pacticipant> --version <version>....
while in linux it is like this:
Copy code
pact-broker can-i-merge --pacticipant=<pacticipant> --version=<version>....
if one is using the same script to call in linux or windows, it has to take into account what base OS it is running. Why not have one unified interface?
y
Why not have one unified interface?
it has a unified interface, which is designed to work cross platform. afaik the only difference is requiring
*.bat
extension for windows commands when using the pact-standalone package. If installed via the gem
pact_broker-client
or via the js or python wrappers, there should be no difference. windows https://github.com/pactflow/example-bi-directional-provider-postman/actions/runs/19536929137/job/55933211103#step:10:19 macos https://github.com/pactflow/example-bi-directional-provider-postman/actions/runs/19536929137/job/55933211092#step:10:19 linux https://github.com/pactflow/example-bi-directional-provider-postman/actions/runs/19536929137/job/55933211084#step:10:19
both these options are valid
Copy code
--pacticipant=<pacticipant>
Copy code
--pacticipant <pacticipant>
m
Yeah, I think it’s just the way the underlying library renders the arguments for the
help
command
You also may want to move to v2 of the CLI that’s not Ruby-based: https://docs.pact.io/implementation_guides/cli
👀 1