Module

GitHub.Actions.IO

Package
purescript-github-actions-toolkit
Repository
purescript-contrib/purescript-github-actions-toolkit

Exports functions from the @actions/io module provided by GitHub https://github.com/actions/toolkit/tree/main/packages/io

#CopyOptions Source

type CopyOptions = { force :: Maybe Boolean, recursive :: Maybe Boolean }

Whether to recursively copy all subdirectories. Defaults to false Whether to overwrite existing files in the destination. Defaults to true

#defaultCopyOptions Source

defaultCopyOptions :: CopyOptions

Defaults for CopyOptions. Override as needed.

#MoveOptions Source

type MoveOptions = { force :: Maybe Boolean }

Whether to overwrite existing files in the destination. Defaults to true

#defaultMoveOptions Source

defaultMoveOptions :: MoveOptions

Defaults for MoveOptions. Override as needed.

#mv Source

mv :: MvArgs -> ExceptT Error Aff Unit

Moves a path

#mv' Source

mv' :: { dest :: FilePath, source :: FilePath } -> ExceptT Error Aff Unit

Moves a path

#MvArgs Source

type MvArgs = { dest :: FilePath, options :: Maybe MoveOptions, source :: FilePath }

source: source path dest: destination path options: See MoveOptions

#cp Source

cp :: CpArgs -> ExceptT Error Aff Unit

Copies a file or folder

#cp' Source

cp' :: { dest :: FilePath, source :: FilePath } -> ExceptT Error Aff Unit

Copies a file or folder

#CpArgs Source

type CpArgs = { dest :: FilePath, options :: Maybe CopyOptions, source :: FilePath }

source: source path dest: destination path options: See CopyOptions

#mkdirP Source

mkdirP :: MkdirPArgs -> ExceptT Error Aff Unit

Make a directory. Creates the full path with folders in between. Will throw if it fails

#MkdirPArgs Source

type MkdirPArgs = { fsPath :: FilePath }

fsPath: path to create

#which Source

which :: WhichArgs -> ExceptT Error Aff FilePath

Returns path of a tool had the tool actually been invoked. Resolves via paths. If you check and the tool does not exist, it will throw.

#WhichArgs Source

type WhichArgs = { check :: Maybe Boolean, tool :: String }

tool: name of the tool check: whether to check if tool exists. Defaults to false

#rmRF Source

rmRF :: RmRFArgs -> ExceptT Error Aff Unit

Remove a path recursively with force

#RmRFArgs Source

type RmRFArgs = { inputPath :: FilePath }

inputPath: path to remove