Closed stefanhalbritterpdg closed 4 months ago
Hey Stefan,
we generally recommend installing the cli tools directly, as a user would get the latest corresponding changes without needing to wait for them to be implemented in client language wrappers.
We also lack visibility into who are using the cli tools directly or via wrappers, so often the additional flags are not added until people request them.
more broadly, i think i would like to replace the ruby implementation with rust
my wip is here https://github.com/YOU54F/pact_cli
your proposals sound good, and I’d be more than happy to accept contributions to extend the current func to be in line with the cli tools, and for any enhancements that make it easier for programmatic use
Thank you for the quick response @YOU54F!
when it is recommended using the cli tools directly, then we probably wrap the pact-broker CLI calls with typescript this way and we would renounce to extend the language wrapper for typescript
execSync(
`pact-broker publish pacts --branch ..... --broker-base-url .....`,
{ stdio: 'inherit' },
)
Kind regards Stefan
Feature description
As a developer, I would like to see next to
publishPacts
canDeploy
. Currently I cannot pass the target environment, only tags. The correspondingpact-broker
cli supports both as well as the docker image passing this parametersrecordDeployment
. Currently onlypublisPacts
andcanDeploy
are (partially) supported next to the pact-broker cli Thereby it would be aligned with the full pact-broker cliUse case
Hi folks,
personally I like it more to use the pact-cli programatically directly in our node projects as code.
publishPacts
and (partially)canDeploy
as typescript convenient functions next to the CLI calls, this should imho be added as wellMaybe you already planned to implement this in the future but there was no capacity (yet). If it sounds like a good idea, maybe we can talk about a contribution.
Kind regards