cardano-cli
Safe HaskellNone
LanguageHaskell2010

Cardano.CLI.Environment

Description

This module defines constants derived from the environment.

Synopsis

Documentation

envCliAnyEon :: forall (eon :: Type -> Type). (Typeable eon, Eon eon) => EnvCli -> Maybe (EraInEon eon) Source #

getEnvNetworkId :: IO (Maybe NetworkId) Source #

If the environment variable CARDANO_NODE_NETWORK_ID is set, then return the network id therein. Otherwise, return Nothing.

getEnvSocketPath :: IO (Maybe FilePath) Source #

If the environment variable CARDANO_NODE_SOCKET_PATH is set, then return the set value. Otherwise, return Nothing.