shebanger-1.0.0.0: Transform a shell script into a series of scripts with only shebang lines
Safe HaskellSafe-Inferred
LanguageHaskell2010

Shebanger.Cli

Documentation

data Command Source #

Instances

Instances details
Show Command Source # 
Instance details

Defined in Shebanger.Cli

data TranslateArgs Source #

Constructors

TranslateArgs 

Instances

Instances details
Show TranslateArgs Source # 
Instance details

Defined in Shebanger.Cli

data ExecArgs Source #

Constructors

ExecArgs 

Fields

  • shebangScriptPart :: ByteString

    The base64-encoded part of the original script.

    Example: "ICAgZWNobyAkaQpkb25lCmVjaG8KCiMgTGlzdCBzeXN0ZW0gaW5mb3JtYXRpb24KdW4="

  • shebangScriptFilePath :: FilePath

    The path of this shebanged script. This is normally passed automatically by the kernel when calling a script with a shebang line.

    Example: "./test.sh.shebanged.7"

  • additionalArgs :: [String]

    Additional arguments that have been passed to the script on the command line.

    Example ["-l", "-a", "somedirectory/"]

Instances

Instances details
Show ExecArgs Source # 
Instance details

Defined in Shebanger.Cli