Shelly

# Entering Sh.

data Sh a

type ShIO a

shelly

shellyNoDir

shellyFailDir

asyncSh

sub

silently

verbosely

escaping

print_stdout

print_stderr

print_commands

onCommandHandles

tracing

errExit

log_stdout_with

log_stderr_with

# Running external commands.

run

run_

runFoldLines

cmd

type FoldCallback a

bash

bash_

bashPipeFail

(-|-)

lastStderr

setStdin

lastExitCode

command

command_

command1

command1_

sshPairs

sshPairs_

class ShellCmd t

class CmdArg a

# Running commands Using handles

runHandle

runHandles

transferLinesAndCombine

transferFoldHandleLines

data StdHandle

data StdStream

# Handle manipulation

type HandleInitializer

data StdInit

initOutputHandles

initAllHandles

# Modifying and querying environment.

setenv

get_env

get_env_text

getenv

get_env_def

get_env_all

get_environment

appendToPath

# Environment directory

cd

chdir

chdir_p

pwd

# Printing

echo

echo_n

echo_err

echo_n_err

inspect

inspect_err

tag

trace

show_command

# Querying filesystem.

ls

lsT

test_e

test_f

test_d

test_s

test_px

which

# Filename helpers

absPath

(</>)

(<.>)

canonic

canonicalize

relPath

relativeTo

path

hasExt

# Manipulating filesystem.

mv

rm

rm_f

rm_rf

cp

cp_r

mkdir

mkdir_p

mkdirTree

# reading/writing Files

readfile

readBinary

writefile

writeBinary

appendfile

touchfile

withTmpDir

# exiting the program

exit

errorExit

quietExit

terror

# Exceptions

bracket_sh

catchany

catch_sh

handle_sh

handleany_sh

finally_sh

data ShellyHandler a

catches_sh

catchany_sh

data ReThrownException e

# convert between Text and FilePath

toTextIgnore

toTextWarn

fromText

# Utility Functions

whenM

unlessM

time

sleep

# Re-exported for your convenience

liftIO

when

unless

data FilePath

(<$>)

# internal functions for writing extensions

get

put

# find functions

find

findWhen

findFold

findDirFilter

findDirFilterWhen

findFoldDirFilter