You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/pact/message/cli.rb
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,23 @@ class CLI < Thor
9
9
method_option:pact_dir,required: true,desc: "The Pact directory"
10
10
method_option:pact_specification_version,required: false,default: "2.0.0",desc: "The Pact Specification version"
11
11
12
-
desc'update MESSAGE_JSON','Update a pact with the given message, or create the pact if it does not exist. The MESSAGE_JSON may be in the legacy Ruby JSON format or the v2+ format.'
13
-
defupdate(message)
12
+
# Update a pact with the given message, or create the pact if it does not exist
13
+
desc'update MESSAGE_JSON',"Update/create a pact. If MESSAGE_JSON is omitted or '-', it is read from stdin"
14
+
long_desc<<-MSG,wrapping: false
15
+
Update a pact with the given message, or create the pact if it does not exist.
16
+
The MESSAGE_JSON may be in the legacy Ruby JSON format or the v2+ format.
17
+
If MESSAGE_JSON is not provided or is '-', the content will be read from
0 commit comments