ammonite

ops

package ops

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ops
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait BasePath[ThisType <: BasePath[ThisType]] extends AnyRef

    A path which is either an absolute Path or a relative RelPath, with shared APIs and implementations

  2. trait Extensions extends AnyRef

  3. class FileData extends AnyRef

  4. sealed trait FileType extends AnyRef

  5. class FilterMapExt[+T, Repr] extends AnyRef

    Extends collections to give short aliases for the commonly used operations, so we can make it easy to use from the command line.

  6. class FilterMapExt2[+T] extends AnyRef

    Extends collections to give short aliases for the commonly used operations, so we can make it easy to use from the command line.

  7. trait Grepper[T] extends AnyRef

  8. trait Op1[T1, R] extends (T1) ⇒ R

  9. trait Op2[T1, T2, R] extends (T1, T2) ⇒ R

  10. case class Path(segments: Seq[String]) extends BasePath[Path] with Product with Serializable

    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

  11. class Pipeable[T] extends AnyRef

    Lets you pipe values through functions

  12. case class RelPath(segments: Seq[String], ups: Int) extends BasePath[RelPath] with Product with Serializable

    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.

  13. trait RelPathStuff extends AnyRef

  14. trait StreamableOp1[T1, R] extends Op1[T1, Vector[R]]

Value Members

  1. object % extends Dynamic

    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"

  2. object BasePath

    Created by haoyi on 1/25/15.

  3. object Extensions extends Extensions

  4. object FileType

  5. object Grepper

  6. object Internals

  7. object OpError

  8. object Path extends (String) ⇒ Path with Serializable

    Created by haoyi on 1/25/15.

  9. object PathError

  10. object RelPath extends RelPathStuff with (String) ⇒ RelPath with Serializable

  11. object cp extends Op2[Path, Path, Unit]

    Copies a file from one place to another.

    Copies a file from one place to another. Creates any necessary directories

  12. object exists extends Op1[Path, Boolean]

    Checks if a file or folder exists at the given path.

  13. object grep

    Lets you filter a list by searching for a matching string or regex within the pretty-printed contents.

  14. object ln extends Op2[Path, Path, Unit]

  15. object ls extends StreamableOp1[Path, Path]

    List the files in a directory

  16. object mkdir extends Op1[Path, Unit]

    Makes directories up to the specified path.

  17. object mv extends Op2[Path, Path, Unit] with Mover

    Moves a file from one place to another.

    Moves a file from one place to another. Creates any necessary directories

  18. object read extends Reader with Op1[Path, String]

    Reads a file into memory, either as a string, as a Seq[String] of lines, or as a Array[Byte]

  19. object rm extends Op1[Path, Unit]

    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

  20. object write extends Op2[Path, Writable, Unit]

    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.

Inherited from AnyRef

Inherited from Any

Ungrouped