Package

ammonite

ops

Permalink

package ops

Linear Supertypes
RelPathStuff, Extensions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ops
  2. RelPathStuff
  3. Extensions
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

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

    Permalink

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

  2. trait BasePathImpl[ThisType <: BasePath[ThisType]] extends BasePath[ThisType]

    Permalink
  3. class Command[T] extends Dynamic

    Permalink

    A staged sub-process command that has yet to be executed.

  4. case class CommandResult(output: Stream[String]) extends Seq[String] with Product with Serializable

    Permalink

    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

  5. trait Extensions extends AnyRef

    Permalink
  6. sealed trait FileType extends AnyRef

    Permalink
  7. class FilterMapExt[+T, Repr] extends AnyRef

    Permalink

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

  8. class FilterMapExt2[+T] extends AnyRef

    Permalink

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

  9. trait ImplicitOp[V] extends Op1[Path, V]

    Permalink
  10. case class LsSeq(base: Path, listed: RelPath*) extends Seq[Path] with Product with Serializable

    Permalink

    A specialized Seq[Path] used to provide better a better pretty-printed experience

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

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

    Permalink
  13. case class Path(segments: Seq[String]) extends BasePathImpl[Path] with Product with Serializable

    Permalink

    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

  14. class PermSet extends Set[PosixFilePermission]

    Permalink
  15. class Pipeable[T] extends AnyRef

    Permalink

    Lets you pipe values through functions

  16. class RegexContext extends AnyRef

    Permalink

    Lets you pattern match strings with interpolated glob-variables

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

    Permalink

    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.

  18. implicit class RelPathStart extends AnyRef

    Permalink
    Definition Classes
    RelPathStuff
  19. implicit class RelPathStart2 extends AnyRef

    Permalink
    Definition Classes
    RelPathStuff
  20. trait RelPathStuff extends AnyRef

    Permalink
  21. case class Shellable(s: String) extends Product with Serializable

    Permalink

    An implicit wrapper defining the things that can be "interpolated" directly into a subprocess call.

  22. trait StreamableOp1[T1, R, C <: Seq[R]] extends Op1[T1, C]

    Permalink

    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

  23. implicit class Transformable1 extends AnyRef

    Permalink
  24. implicit class iterShow[T] extends AnyRef

    Permalink
    Definition Classes
    Extensions
  25. case class kill(signal: Int) extends Op1[Int, CommandResult] with Product with Serializable

    Permalink

    Kills the given process with the given signal, e.g.

    Kills the given process with the given signal, e.g. kill(9)! pid

  26. case class stat(name: String, size: Long, mtime: FileTime, owner: UserPrincipal, permissions: PermSet, fileType: FileType) extends Product with Serializable

    Permalink

Value Members

  1. def %(implicit wd: Path): Command[Int]

    Permalink

    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. def %%(implicit wd: Path): Command[CommandResult]

    Permalink
  3. object /

    Permalink

    Extractor to let you easily pattern match on ops.Paths

  4. object BasePath

    Permalink

    Created by haoyi on 1/25/15.

  5. implicit def ChainableConversions[T, T1, V](f: (T) ⇒ V)(implicit i: (T1) ⇒ T): (T1) ⇒ V

    Permalink
    Definition Classes
    Extensions
  6. object CommandResult extends Serializable

    Permalink
  7. object Extensions extends Extensions

    Permalink
  8. object FileType

    Permalink
  9. implicit def FilterMapArrays[T](a: Array[T]): FilterMapExt[T, Array[T]]

    Permalink

    Lets you call FilterMapExt aliases on Arrays too

    Lets you call FilterMapExt aliases on Arrays too

    Definition Classes
    Extensions
  10. implicit def FilterMapExt[T, Repr](i: TraversableLike[T, Repr]): FilterMapExt[T, Repr]

    Permalink
    Definition Classes
    Extensions
  11. implicit def FilterMapIterators[T](a: Iterator[T]): FilterMapExt2[T]

    Permalink
    Definition Classes
    Extensions
  12. object ImplicitWd

    Permalink
  13. object Internals

    Permalink
  14. object LsSeq extends Serializable

    Permalink
  15. object OpError

    Permalink
  16. object Path extends (String) ⇒ Path with Serializable

    Permalink
  17. object PathError

    Permalink
  18. object PermSet

    Permalink
  19. implicit def Pipeable[T](t: T): Pipeable[T]

    Permalink
    Definition Classes
    Extensions
  20. object RegexContext

    Permalink
  21. implicit def RegexContextMaker(s: StringContext): RegexContext

    Permalink
    Definition Classes
    Extensions
  22. object RelPath extends RelPathStuff with (String) ⇒ RelPath with Serializable

    Permalink
  23. implicit def SeqFactoryFunc[T, CC[X] <: Seq[X] with GenericTraversableTemplate[X, CC]](s: SeqFactory[CC]): (Seq[T]) ⇒ CC[T]

    Permalink

    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

    Definition Classes
    Extensions
  24. object Shellable extends Serializable

    Permalink
  25. object Shellout

    Permalink
  26. object cp extends Op2[Path, Path, Unit]

    Permalink

    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.

  27. lazy val cwd: Path

    Permalink

    The current working directory for this process.

  28. val empty: RelPath

    Permalink
    Definition Classes
    RelPathStuff
  29. object exists extends Op1[Path, Boolean]

    Permalink

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

  30. implicit def fileData(p: Path): full

    Permalink
  31. val home: Path

    Permalink

    The user's home directory

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

    Permalink
  33. object ls extends StreamableOp1[Path, Path, LsSeq] with ImplicitOp[LsSeq]

    Permalink

    List the files and folders in a directory

  34. object mkdir extends Op1[Path, Unit]

    Permalink

    Makes directories up to the specified path.

    Makes directories up to the specified path. Equivalent to mkdir -p in bash

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

    Permalink

    Moves a file from one place to another.

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

  36. implicit val postfixOps: postfixOps

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

    Permalink

    Reads a file into memory, either as a String, as (read.lines(...): Seq[String]), or as (read.bytes(...): Array[Byte]).

  38. object rm extends Op1[Path, Unit]

    Permalink

    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

  39. val root: Path

    Permalink

    The root of the filesystem

  40. object stat extends Op1[Path, stat] with Serializable

    Permalink
  41. val up: RelPath

    Permalink
    Definition Classes
    RelPathStuff
  42. object write extends Op2[Path, Writable, Unit]

    Permalink

    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 RelPathStuff

Inherited from Extensions

Inherited from AnyRef

Inherited from Any

Ungrouped