Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hadolint.Shell
Documentation
data ParsedShell Source #
Constructors
ParsedShell | |
Fields
|
shellcheck :: ShellOpts -> ParsedShell -> [PositionedComment] Source #
parseShell :: Text -> ParsedShell Source #
findCommandsInResult :: ParseResult -> [Token] Source #
extractTokensWith :: forall a. (Token -> Maybe a) -> ParseResult -> [a] Source #
findPipes :: ParsedShell -> [Token] Source #
hasPipes :: ParsedShell -> Bool Source #
allCommands :: (Command -> Bool) -> ParsedShell -> Bool Source #
noCommands :: (Command -> Bool) -> ParsedShell -> Bool Source #
findCommandNames :: ParsedShell -> [Text] Source #
cmdHasArgs :: Text -> [Text] -> Command -> Bool Source #
cmdHasPrefixArg :: Text -> Text -> Command -> Bool Source #
extractAllArgs :: Token -> [CmdPart] Source #
getAllFlags :: [CmdPart] -> [CmdPart] Source #
getArgsNoFlags :: Command -> [Text] Source #
hasAnyFlag :: [Text] -> Command -> Bool Source #
dropFlagArg :: [Text] -> Command -> Command Source #