Crate xaction[][src]

Modules

git

Macros

cmd

Constructs a Cmd from the given string.

Structs

CargoToml
Cmd

A command.

Error

An error returned by an xshell operation.

Pushd

The result of calling a successful pushd.

Pushenv

The result of calling a successful pushenv.

Section
TempDir

A temporary directory.

Functions

cargo_toml
cp

Copies src into dst.

cwd

Returns the current working directory.

mkdir_p

Creates the path directory and all of its parents.

mktemp_d

Creates an empty, world-readable, temporary directory.

push_rustup_toolchain
pushd

Changes the current directory to dir.

pushenv

Sets the environment variable key to have value val.

read_dir

Returns a sorted list of paths directly contained in the directory at path that were able to be accessed without error.

read_file

Reads the file at path into a String.

rm_rf

Removes the given path and all of its contents (if it is a directory).

section
set_dry_run
write_file

Writes the contents into the file at path, creating the file if it didn’t exist already.

Type Definitions

Error
Result

Result from std, with the error type defaulting to xshell’s Error.

Result