hadolint-2.12.0: Dockerfile Linter JavaScript API
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hadolint.Shell

Synopsis

Documentation

data CmdPart Source #

Constructors

CmdPart 

Fields

Instances

Instances details
Show CmdPart Source # 
Instance details

Defined in Hadolint.Shell

Eq CmdPart Source # 
Instance details

Defined in Hadolint.Shell

Methods

(==) :: CmdPart -> CmdPart -> Bool #

(/=) :: CmdPart -> CmdPart -> Bool #

data Command Source #

Constructors

Command 

Fields

Instances

Instances details
Show Command Source # 
Instance details

Defined in Hadolint.Shell

Eq Command Source # 
Instance details

Defined in Hadolint.Shell

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #

data ShellOpts Source #

Constructors

ShellOpts 

Fields

extractTokensWith :: forall a. (Token -> Maybe a) -> ParseResult -> [a] Source #

getFlagArg :: Text -> Command -> [Text] Source #

given a flag and a command, return list of arguments for that particulat flag. E.g., if the command is `useradd -u 12345 luser` and this function is called for the command u, it returns ["12345"].

usingProgram :: Text -> ParsedShell -> Bool Source #

Check if a command contains a program call in the Run instruction