Cardano.CLI.Environment
Description
This module defines constants derived from the environment.
data EnvCli Source #
Constructors
Fields
envCliAnyEon :: forall (eon :: Type -> Type). (Typeable eon, Eon eon) => EnvCli -> Maybe (EraInEon eon) Source #
getEnvCli :: IO EnvCli 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.
CARDANO_NODE_NETWORK_ID
Nothing
getEnvSocketPath :: IO (Maybe FilePath) Source #
If the environment variable CARDANO_NODE_SOCKET_PATH is set, then return the set value. Otherwise, return Nothing.
CARDANO_NODE_SOCKET_PATH