| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DzenDhall.Arguments
Description
Arguments data and parser.
Synopsis
- data Explain
- data ConfirmPlug
- data StdoutFlag
- data SkipAssertions
- data PlugCommand = PlugCommand {
- source :: String
- confirm :: ConfirmPlug
- newtype UnplugCommand = UnplugCommand String
- data ValidateCommand = ValidateCommand {}
- data Command
- data Arguments = Arguments {}
- stdoutFlag :: Lens' Arguments StdoutFlag
- mbDzenBinary :: Lens' Arguments (Maybe String)
- mbConfigDir :: Lens' Arguments (Maybe String)
- mbCommand :: Lens' Arguments (Maybe Command)
- explain :: Lens' Arguments Explain
- argParser :: Parser Arguments
- plugCommandParser :: Parser PlugCommand
- unplugCommandParser :: Parser UnplugCommand
- validateCommandParser :: Parser ValidateCommand
- argumentsParser :: ParserInfo Arguments
Flags
Constructors
| Explain | |
| DontExplain |
data ConfirmPlug Source #
Whether to skip confirmation when running plug command.
Constructors
| Confirm | |
| DontConfirm |
Instances
| Eq ConfirmPlug Source # | |
Defined in DzenDhall.Arguments | |
| Show ConfirmPlug Source # | |
Defined in DzenDhall.Arguments Methods showsPrec :: Int -> ConfirmPlug -> ShowS # show :: ConfirmPlug -> String # showList :: [ConfirmPlug] -> ShowS # | |
data StdoutFlag Source #
Instances
| Eq StdoutFlag Source # | |
Defined in DzenDhall.Arguments | |
| Show StdoutFlag Source # | |
Defined in DzenDhall.Arguments Methods showsPrec :: Int -> StdoutFlag -> ShowS # show :: StdoutFlag -> String # showList :: [StdoutFlag] -> ShowS # | |
data SkipAssertions Source #
Constructors
| SkipAssertions | |
| DontSkip |
Instances
| Eq SkipAssertions Source # | |
Defined in DzenDhall.Arguments Methods (==) :: SkipAssertions -> SkipAssertions -> Bool # (/=) :: SkipAssertions -> SkipAssertions -> Bool # | |
| Show SkipAssertions Source # | |
Defined in DzenDhall.Arguments Methods showsPrec :: Int -> SkipAssertions -> ShowS # show :: SkipAssertions -> String # showList :: [SkipAssertions] -> ShowS # | |
Main data
data PlugCommand Source #
Constructors
| PlugCommand | |
Fields
| |
Instances
| Eq PlugCommand Source # | |
Defined in DzenDhall.Arguments | |
| Show PlugCommand Source # | |
Defined in DzenDhall.Arguments Methods showsPrec :: Int -> PlugCommand -> ShowS # show :: PlugCommand -> String # showList :: [PlugCommand] -> ShowS # | |
newtype UnplugCommand Source #
Constructors
| UnplugCommand String |
Instances
| Eq UnplugCommand Source # | |
Defined in DzenDhall.Arguments Methods (==) :: UnplugCommand -> UnplugCommand -> Bool # (/=) :: UnplugCommand -> UnplugCommand -> Bool # | |
| Show UnplugCommand Source # | |
Defined in DzenDhall.Arguments Methods showsPrec :: Int -> UnplugCommand -> ShowS # show :: UnplugCommand -> String # showList :: [UnplugCommand] -> ShowS # | |
data ValidateCommand Source #
Constructors
| ValidateCommand | |
Fields | |
Instances
| Eq ValidateCommand Source # | |
Defined in DzenDhall.Arguments Methods (==) :: ValidateCommand -> ValidateCommand -> Bool # (/=) :: ValidateCommand -> ValidateCommand -> Bool # | |
| Show ValidateCommand Source # | |
Defined in DzenDhall.Arguments Methods showsPrec :: Int -> ValidateCommand -> ShowS # show :: ValidateCommand -> String # showList :: [ValidateCommand] -> ShowS # | |
Constructors
| Init | |
| Plug PlugCommand | |
| Unplug UnplugCommand | |
| Validate ValidateCommand | |
| Version |
Constructors
| Arguments | |
Fields
| |