A path which is either an absolute Path or a relative RelPath, with shared APIs and implementations.
A staged sub-process command that has yet to be executed.
Wrapper for the Stream[String]
of lines returned by a subprocess
command, but with a better PPrint
that makes it look like one
block of text for easy reading
Extends collections to give short aliases for the commonly used operations, so we can make it easy to use from the command line.
Extends collections to give short aliases for the commonly used operations, so we can make it easy to use from the command line.
A specialized Seq[Path] used to provide better a better pretty-printed experience
An absolute path on the filesystem.
An absolute path on the filesystem. Note that the path is normalized and cannot contain any empty, "." or ".." segments
Lets you pipe values through functions
Lets you pattern match strings with interpolated glob-variables
An absolute path on the filesystem.
An absolute path on the filesystem. Note that the path is normalized and cannot contain any empty or ".". Parent ".." segments can only occur at the left-end of the path, and are collapsed into a single number ups.
An implicit wrapper defining the things that can be "interpolated" directly into a subprocess call.
An Op1 that returns a Seq[R], but can also do so
lazily (Iterator[R]) via op.!! arg
.
An Op1 that returns a Seq[R], but can also do so
lazily (Iterator[R]) via op.!! arg
. You can then use
the iterator however you wish
Kills the given process with the given signal, e.g.
Kills the given process with the given signal, e.g.
kill(9)! pid
Dynamic shell command execution.
Dynamic shell command execution. This allows you to run commands which are not provided by Ammonite, by shelling out to bash. e.g. try
%ls %ls "/" %ps 'aux
Extractor to let you easily pattern match on ops.Paths
Created by haoyi on 1/25/15.
Lets you call FilterMapExt aliases on Arrays too
Lets you call FilterMapExt aliases on Arrays too
Allows you to pipe sequences into other sequences to convert them, e.g.
Allows you to pipe sequences into other sequences to convert them, e.g. Seq(1, 2, 3) |> Vector
Copies a file or folder from one place to another.
Copies a file or folder from one place to another. Creates any necessary directories, and copies folders recursively.
The current working directory for this process.
Checks if a file or folder exists at the given path.
The user's home directory
List the files and folders in a directory
Makes directories up to the specified path.
Makes directories up to the specified path. Equivalent
to mkdir -p
in bash
Moves a file from one place to another.
Moves a file from one place to another. Creates any necessary directories
Reads a file into memory, either as a String, as (read.lines(...): Seq[String]), or as (read.bytes(...): Array[Byte]).
Roughly equivalent to bash's rm -rf
.
Roughly equivalent to bash's rm -rf
. Deletes
any files or folders in the target path, or
does nothing if there aren't any
The root of the filesystem
Write some data to a file.
Write some data to a file. This can be a String, an Array[Byte], or a Seq[String] which is treated as consecutive lines. By default, this fails if a file already exists at the target location. Use write.over or write.append if you want to over-write it or add to what's already there.