Skip to content

Commit

Permalink
New cardano-cli ping command.
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Nov 26, 2022
1 parent 84fa2e2 commit c314014
Show file tree
Hide file tree
Showing 5 changed files with 602 additions and 2 deletions.
1 change: 0 additions & 1 deletion cardano-api/src/Cardano/Api/StakePoolMetadata.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import Cardano.Ledger.Crypto (StandardCrypto)

import qualified Cardano.Ledger.Keys as Shelley


-- ----------------------------------------------------------------------------
-- Stake pool metadata
--
Expand Down
6 changes: 6 additions & 0 deletions cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ library
Cardano.CLI.Shelley.Run.Read
Cardano.CLI.Shelley.Run.Validate

Cardano.CLI.Ping

Cardano.CLI.TopHandler

other-modules: Paths_cardano_cli
Expand Down Expand Up @@ -125,8 +127,10 @@ library
, directory
, filepath
, formatting
, io-classes
, iproute
, network
, network-mux
, optparse-applicative-fork
, ouroboros-consensus
, ouroboros-consensus-byron
Expand All @@ -141,7 +145,9 @@ library
, set-algebra
, split
, strict-containers
, strict-stm
, text
, tdigest
, time
, transformers
, transformers-except
Expand Down
8 changes: 7 additions & 1 deletion cardano-cli/src/Cardano/CLI/Parsers.hs
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}

module Cardano.CLI.Parsers
( opts
, pref
) where

import Cardano.Prelude
import Cardano.CLI.Byron.Parsers (backwardsCompatibilityCommands, parseByronCommands)
import Cardano.CLI.Ping (parsePingCmd)
import Cardano.CLI.Render (customRenderHelp)
import Cardano.CLI.Run (ClientCommand (..))
import Cardano.CLI.Shelley.Parsers (parseShelleyCommands)
import Cardano.Prelude
import Options.Applicative
import Prelude (String)

Expand Down Expand Up @@ -45,6 +47,7 @@ parseClientCommand =
-- so we list it first.
[ parseShelley
, parseByron
, parsePing
, parseDeprecatedShelleySubcommand
, backwardsCompatibilityCommands
, parseDisplayVersion opts
Expand All @@ -62,6 +65,9 @@ parseByron =
parseByronCommands
]

parsePing :: Parser ClientCommand
parsePing = CliPingCommand <$> parsePingCmd

-- | Parse Shelley-related commands at the top level of the CLI.
parseShelley :: Parser ClientCommand
parseShelley = ShelleyCommand <$> parseShelleyCommands
Expand Down
Loading

0 comments on commit c314014

Please sign in to comment.