-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4928 Add CLI command for printing slot number for UTC Time
- Loading branch information
1 parent
aae95ac
commit 4bddc33
Showing
15 changed files
with
323 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
cardano-cli/test/cardano-cli-golden/files/golden/help/query_slot-number.cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Usage: cardano-cli query slot-number --socket-path SOCKET_PATH | ||
[ --shelley-mode | ||
| --byron-mode [--epoch-slots SLOTS] | ||
| --cardano-mode [--epoch-slots SLOTS] | ||
] | ||
(--mainnet | --testnet-magic NATURAL) | ||
TIMESTAMP | ||
|
||
Query slot number for UTC timestamp | ||
|
||
Available options: | ||
--socket-path SOCKET_PATH | ||
Path to the node socket. This overrides the | ||
CARDANO_NODE_SOCKET_PATH environment variable. The | ||
argument is optional if CARDANO_NODE_SOCKET_PATH is | ||
defined and mandatory otherwise. | ||
--shelley-mode For talking to a node running in Shelley-only mode. | ||
--byron-mode For talking to a node running in Byron-only mode. | ||
--epoch-slots SLOTS The number of slots per epoch for the Byron era. | ||
(default: 21600) | ||
--cardano-mode For talking to a node running in full Cardano mode | ||
(default). | ||
--epoch-slots SLOTS The number of slots per epoch for the Byron era. | ||
(default: 21600) | ||
--mainnet Use the mainnet magic id. This overrides the | ||
CARDANO_NODE_NETWORK_ID environment variable | ||
--testnet-magic NATURAL Specify a testnet magic id. This overrides the | ||
CARDANO_NODE_NETWORK_ID environment variable | ||
TIMESTAMP UTC timestamp in YYYY-MM-DDThh:mm:ssZ format | ||
-h,--help Show this help text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.