Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/rust tools #135

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

YOU54F
Copy link
Member

@YOU54F YOU54F commented Aug 13, 2024

relates to pact-foundation/pact-ruby-standalone#146

add rust tools to package

Couple of ways we can do it

  1. update entrypoint.sh to allow rust commands and delegate directly to them
  2. update cli.rb to allow entries in the main cli docs that run without a command. This means we can mark the ruby equiv tools as legacy, and prefer the use of the rust tools.
  3. do both :) everyone loves options

we can also do both, which will allow a user to enter the rust command

├── pact_mock_server_cli
├── pact-stub-server
├── pact_verifier_cli
└── pact-plugin-cli

or

├── pact mock-server
├── pact stub-server
├── pact verifier
└── pact plugin
docker run --rm -it pact       
Commands:
   help [COMMAND]                  # Describe available commands or one specific command
   mock-server                     # Run a Pact mock server
   mock-service                    # (legacy) Run a Pact mock service
   pact-broker                     # Interact with a Pact Broker (also aliased as the subcommand `broker`)
   pactflow                        # Interact with PactFlow
   plugin                          # Run the Pact plugin cli
   publish PACT_DIRS_OR_FILES ...  # Publish pacts to a Pact Broker.
   stub-server                     # Run a Pact stub server
   stub-service                    # (legacy) Run a Pact stub service
   verifier                        # Run a Pact verifier
   verify PACT_URL ...             # (legacy) Verify pact(s) against a provider. Supports local and networked (http-based) files.
   version                         # Print the version of the CLI

Notes

  • ⚠️ drops ARM support (no supported flavours of rust)
    • We could conditionally ignore, but it will speed up runs, as arm is under emulation.

TODO

  • docs of usage
  • website docs
  • update breaking change notation in commit entries

@YOU54F
Copy link
Member Author

YOU54F commented Sep 6, 2024

This can be reviewed but there are a couple of todo's

@YOU54F YOU54F marked this pull request as ready for review September 6, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant