@@ -8,16 +8,16 @@ restful web api or through the command line interface. It implements the [V4 Pac
88
99## Command line interface
1010
11- The mock server is bundles as a single binary executable ` pact_mock_server_cli ` . Running this with out any options displays
11+ The mock server is bundles as a single binary executable ` pact-mock-server ` . Running this with out any options displays
1212the standard help.
1313
1414``` console,ignore
15- $ ./pact_mock_server_cli --help
16- ./pact_mock_server_cli v1.0.0
15+ $ ./pact-mock-server --help
16+ ./pact-mock-server v1.0.0
1717Standalone Pact mock server
1818
1919USAGE:
20- pact_mock_server_cli [FLAGS] [OPTIONS] <SUBCOMMAND>
20+ pact-mock-server [FLAGS] [OPTIONS] <SUBCOMMAND>
2121
2222FLAGS:
2323 --help Prints help information
@@ -72,10 +72,10 @@ This prints either the main help or the help for a sub-command.
7272This starts the master mock server. This server needs to be running for the other sub-commands to work.
7373
7474``` console
75- $ ./pact_mock_server_cli help start
75+ $ ./pact-mock-server help start
7676Starts the master mock server
7777
78- Usage: pact_mock_server_cli start [OPTIONS]
78+ Usage: pact-mock-server start [OPTIONS]
7979
8080Options:
8181 --help Print help and exit
@@ -101,7 +101,7 @@ This sets the output directory that log files and pact files are written to. It
101101##### Example
102102
103103``` console,ignore
104- $ ./pact_mock_server_cli start -l debug -o logs/
104+ $ ./pact-mock-server start -l debug -o logs/
10510515:40:08 [DEBUG] hyper::server: threads = 10
10610615:40:08 [INFO] pact_mock_server_cli::server: Server started on port 8080
107107```
@@ -114,10 +114,10 @@ will be displayed.
114114Note, the tls option will only be available if the tls create feature is enabled.
115115
116116``` console
117- $ ./pact_mock_server_cli help create
117+ $ ./pact-mock-server help create
118118Creates a new mock server from a pact file
119119
120- Usage: pact_mock_server_cli create [OPTIONS] --file <file>
120+ Usage: pact-mock-server create [OPTIONS] --file <file>
121121
122122Options:
123123 -f, --file <file> the pact file to define the mock server
@@ -144,7 +144,7 @@ This option specifies the pact file to base the mock server on. It is a mandator
144144##### Example
145145
146146``` console,ignore
147- $ ./pact_mock_server_cli create -f ../../../libpact_matching/tests/pact.json
147+ $ ./pact-mock-server create -f ../../../libpact_matching/tests/pact.json
14814815:43:47 [INFO] pact_mock_server_cli::create_mock: Creating mock server from file ../../../libpact_matching/tests/pact.json
149149Mock server "7d1bf906d0ff42528f2d7d794dd19c5b" started on port 52943
150150```
@@ -154,10 +154,10 @@ Mock server "7d1bf906d0ff42528f2d7d794dd19c5b" started on port 52943
154154Lists out all running mock servers with their ID, port, provider name and status.
155155
156156``` console
157- $ ./pact_mock_server_cli list --help
157+ $ ./pact-mock-server list --help
158158Lists all the running mock servers
159159
160- Usage: pact_mock_server_cli list [OPTIONS]
160+ Usage: pact-mock-server list [OPTIONS]
161161
162162Options:
163163 --help Print help and exit
@@ -174,7 +174,7 @@ Options:
174174##### Example
175175
176176``` console,ignore
177- $ ./pact_mock_server_cli list
177+ $ ./pact-mock-server list
178178Mock Server Id Port Provider Status
1791797d1bf906d0ff42528f2d7d794dd19c5b 52943 Alice Service error
180180```
@@ -186,10 +186,10 @@ expectations have been met, the pact file will be written out to the output dire
186186sub-command. If there is any errors, no pact file will be written and the errors displayed to the console.
187187
188188``` console
189- $ ./pact_mock_server_cli verify --help
189+ $ ./pact-mock-server verify --help
190190Verify the mock server by id or port number, and generate a pact file if all ok
191191
192- Usage: pact_mock_server_cli verify [OPTIONS]
192+ Usage: pact-mock-server verify [OPTIONS]
193193
194194Options:
195195 --help
@@ -229,7 +229,7 @@ The port number of the mock server to verify. Either this option or the mock ser
229229In the case of a mock server that has issues:
230230
231231``` console,ignore
232- $ ./pact_mock_server_cli verify -m 52943
232+ $ ./pact-mock-server verify -m 52943
233233Mock server 7d1bf906d0ff42528f2d7d794dd19c5b/52943 failed verification with 1 errors
234234
2352350 - Expected request was not received - {"method":"GET","path":"/mallory","query":"name=ron&status=good"}
@@ -238,7 +238,7 @@ Mock server 7d1bf906d0ff42528f2d7d794dd19c5b/52943 failed verification with 1 er
238238and for a mock server that has matched all requests:
239239
240240``` console,ignore
241- $ ./pact_mock_server_cli verify -m 52943
241+ $ ./pact-mock-server verify -m 52943
242242Mock server 7d1bf906d0ff42528f2d7d794dd19c5b/52943 verified ok
243243```
244244
@@ -247,10 +247,10 @@ Mock server 7d1bf906d0ff42528f2d7d794dd19c5b/52943 verified ok
247247Shutdown the mock server by id or port number, releasing all its resources.
248248
249249``` console
250- $ ./pact_mock_server_cli help shutdown
250+ $ ./pact-mock-server help shutdown
251251Shutdown the mock server by id or port number, releasing all its resources
252252
253- Usage: pact_mock_server_cli shutdown [OPTIONS]
253+ Usage: pact-mock-server shutdown [OPTIONS]
254254
255255Options:
256256 --help
@@ -288,7 +288,7 @@ The port number of the mock server to shutdown. Either this option or the mock s
288288##### Example
289289
290290``` console,ignore
291- $ ./pact_mock_server_cli shutdown -i 3a94a472d04849048b78109e288702d0
291+ $ ./pact-mock-server shutdown -i 3a94a472d04849048b78109e288702d0
292292Mock server with id '3a94a472d04849048b78109e288702d0' shutdown ok
293293```
294294
0 commit comments