Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module declares all options/flags that tasty
will
parse from the command line/environment variables.
They're used to configure Test.Cleveland.
Synopsis
- newtype ContextLinesOpt = ContextLinesOpt Natural
- newtype DataDirOpt = DataDirOpt (Maybe FilePath)
- newtype EndpointOpt = EndpointOpt (Maybe BaseUrl)
- newtype MoneybagAliasOpt = MoneybagAliasOpt ImplicitAlias
- newtype PathOpt = PathOpt FilePath
- data RunModeOpt
- newtype SecretKeyOpt = SecretKeyOpt (Maybe SecretKey)
- newtype VerboseOpt = VerboseOpt Word
- clevelandOptions :: [OptionDescription]
- mkParseValueWithReadM :: forall v a. ReadM a -> (a -> v) -> String -> Maybe v
- mkOptionParserWithReadM :: forall v a. IsOption v => ReadM a -> String -> (a -> v) -> Maybe Char -> Parser v
- mkParseValue :: forall v a. HasCLReader a => (a -> v) -> String -> Maybe v
- mkOptionParser :: forall v a. (IsOption v, HasCLReader a) => (a -> v) -> Maybe Char -> Parser v
Documentation
newtype ContextLinesOpt Source #
Instances
Show ContextLinesOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options showsPrec :: Int -> ContextLinesOpt -> ShowS # show :: ContextLinesOpt -> String # showList :: [ContextLinesOpt] -> ShowS # | |
Eq ContextLinesOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options (==) :: ContextLinesOpt -> ContextLinesOpt -> Bool # (/=) :: ContextLinesOpt -> ContextLinesOpt -> Bool # | |
IsOption ContextLinesOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options |
newtype DataDirOpt Source #
Instances
Show DataDirOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options showsPrec :: Int -> DataDirOpt -> ShowS # show :: DataDirOpt -> String # showList :: [DataDirOpt] -> ShowS # | |
Eq DataDirOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options (==) :: DataDirOpt -> DataDirOpt -> Bool # (/=) :: DataDirOpt -> DataDirOpt -> Bool # | |
IsOption DataDirOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options |
newtype EndpointOpt Source #
Morley Client option specifying endpoint URL of the Tezos node.
Instances
Show EndpointOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options showsPrec :: Int -> EndpointOpt -> ShowS # show :: EndpointOpt -> String # showList :: [EndpointOpt] -> ShowS # | |
Eq EndpointOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options (==) :: EndpointOpt -> EndpointOpt -> Bool # (/=) :: EndpointOpt -> EndpointOpt -> Bool # | |
IsOption EndpointOpt Source # | |
newtype MoneybagAliasOpt Source #
Instances
Show MoneybagAliasOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options showsPrec :: Int -> MoneybagAliasOpt -> ShowS # show :: MoneybagAliasOpt -> String # showList :: [MoneybagAliasOpt] -> ShowS # | |
Eq MoneybagAliasOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options (==) :: MoneybagAliasOpt -> MoneybagAliasOpt -> Bool # (/=) :: MoneybagAliasOpt -> MoneybagAliasOpt -> Bool # | |
IsOption MoneybagAliasOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options |
Instances
Show PathOpt Source # | |
Eq PathOpt Source # | |
IsOption PathOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options defaultValue :: PathOpt # parseValue :: String -> Maybe PathOpt # optionName :: Tagged PathOpt String # optionHelp :: Tagged PathOpt String # showDefaultValue :: PathOpt -> Maybe String # |
data RunModeOpt Source #
Instances
newtype SecretKeyOpt Source #
SecretKeyOpt (Maybe SecretKey) |
Instances
Show SecretKeyOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options showsPrec :: Int -> SecretKeyOpt -> ShowS # show :: SecretKeyOpt -> String # showList :: [SecretKeyOpt] -> ShowS # | |
Eq SecretKeyOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options (==) :: SecretKeyOpt -> SecretKeyOpt -> Bool # (/=) :: SecretKeyOpt -> SecretKeyOpt -> Bool # | |
IsOption SecretKeyOpt Source # | |
newtype VerboseOpt Source #
To increase verbosity, pass -V
several times on the command line (e.g. -VVV
),
or set TASTY_CLEVELAND_VERBOSE=3
as an environment variable.
Instances
Show VerboseOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options showsPrec :: Int -> VerboseOpt -> ShowS # show :: VerboseOpt -> String # showList :: [VerboseOpt] -> ShowS # | |
Eq VerboseOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options (==) :: VerboseOpt -> VerboseOpt -> Bool # (/=) :: VerboseOpt -> VerboseOpt -> Bool # | |
IsOption VerboseOpt Source # | |
Defined in Test.Cleveland.Tasty.Internal.Options |
clevelandOptions :: [OptionDescription] Source #
A list with all the options needed to configure Test.Cleveland.
mkOptionParserWithReadM Source #
Build a command line option parser by reusing an instance of IsOption
,
for types that don't have an instance of HasCLReader
.
mkParseValue :: forall v a. HasCLReader a => (a -> v) -> String -> Maybe v Source #
Create an environment variable parser by reusing an instance of HasCLReader
.