Skip to content

Commit

Permalink
Adapt golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Nov 22, 2023
1 parent bcbc5b3 commit cd1ba2f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
13 changes: 11 additions & 2 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Usage: cardano-cli
| legacy
| Legacy commands
| byron
| handshake
| ping
| version
)
Expand Down Expand Up @@ -10961,13 +10962,21 @@ Usage: cardano-cli byron create-update-proposal

Create an update proposal.

Usage: cardano-cli handshake ((-h|--host HOST) | (-u|--unixsock SOCKET))
[-p|--port PORT]
[-m|--magic MAGIC]
[-j|--json]
[-q|--quiet]
[-Q|--query-versions]

Negotiates a handshake and prints the negotiated version

Usage: cardano-cli ping [-c|--count COUNT]
((-h|--host HOST) | (-u|--unixsock SOCKET))
(-h|--host HOST)
[-p|--port PORT]
[-m|--magic MAGIC]
[-j|--json]
[-q|--quiet]
[-Q|--query-versions]

Ping a cardano node either using node-to-node or node-to-client protocol. It negotiates a handshake and keeps sending keep alive messages.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Usage: cardano-cli handshake ((-h|--host HOST) | (-u|--unixsock SOCKET))
[-p|--port PORT]
[-m|--magic MAGIC]
[-j|--json]
[-q|--quiet]
[-Q|--query-versions]

Negotiates a handshake and prints the negotiated version

Available options:
-h,--host HOST Hostname/IP, e.g. relay.iohk.example.
-u,--unixsock SOCKET Unix socket, e.g. file.socket.
-p,--port PORT Port number, e.g. 1234.
-m,--magic MAGIC Network magic.
-j,--json JSON output flag.
-q,--quiet Don't print network statistics, only print negotiated
version (default) or supported versions (-Q).
-Q,--query-versions Instead of printing the negotiated version, print all
queried versions.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Usage: cardano-cli ping [-c|--count COUNT]
((-h|--host HOST) | (-u|--unixsock SOCKET))
(-h|--host HOST)
[-p|--port PORT]
[-m|--magic MAGIC]
[-j|--json]
Expand All @@ -13,11 +13,12 @@ Available options:
responses. If this option is not specified, ping will
operate until interrupted.
-h,--host HOST Hostname/IP, e.g. relay.iohk.example.
-u,--unixsock SOCKET Unix socket, e.g. file.socket.
-p,--port PORT Port number, e.g. 1234.
-m,--magic MAGIC Network magic.
-j,--json JSON output flag.
-q,--quiet Quiet flag, CSV/JSON only output
-q,--quiet Quiet flag: don't print network statistics.
-Q,--query-versions Query the supported protocol versions using the
handshake protocol and terminate the connection.
handshake protocol and terminate the connection
(deprecated, use the "cardano-cli handshake" command
instead).
-h,--help Show this help text

0 comments on commit cd1ba2f

Please sign in to comment.