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 Callable1[T1, R] extends (T1) ⇒ R

    Permalink
  4. class Callable2[T1, T2, R] extends (T1, T2) ⇒ R

    Permalink
  5. case class Command[T](cmd: Vector[String], envArgs: Map[String, String], execute: (Path, Command[_]) ⇒ T) extends Dynamic with Product with Serializable

    Permalink

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

  6. 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

  7. trait Extensions extends AnyRef

    Permalink
  8. sealed trait FileType extends AnyRef

    Permalink
  9. 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.

  10. 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.

  11. trait ImplicitOp[V] extends (Path) ⇒ V

    Permalink
  12. 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

  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: Seq[String]) extends Product with Serializable

    Permalink

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

  22. abstract class ShelloutRoots extends AnyRef

    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

  23. trait StreamableOp1[T1, R, C <: Seq[R]] extends (T1) ⇒ C

    Permalink

    An Callable1 that returns a Seq[R], but can also do so lazily (Iterator[R]) via op.!! arg.

    An Callable1 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

  24. implicit class Transformable1 extends AnyRef

    Permalink
  25. implicit class iterShow[T] extends AnyRef

    Permalink
    Definition Classes
    Extensions
  26. case class kill(signal: Int) extends (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

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

    Permalink

Value Members

  1. val %: Command[Int]

    Permalink
  2. val %%: 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 Callable1[T1, R](f: (T1) ⇒ R): Callable1[T1, R]

    Permalink
    Definition Classes
    Extensions
  6. implicit def Callable2[T1, T2, R](f: (T1, T2) ⇒ R): Callable2[T1, T2, R]

    Permalink
    Definition Classes
    Extensions
  7. implicit def ChainableConversions[T, T1, V](f: (T) ⇒ V)(implicit i: (T1) ⇒ T): (T1) ⇒ V

    Permalink
    Definition Classes
    Extensions
  8. object Extensions extends Extensions

    Permalink
  9. object FileType

    Permalink
  10. 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
  11. implicit def FilterMapExt[T, Repr](i: TraversableLike[T, Repr]): FilterMapExt[T, Repr]

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

    Permalink
    Definition Classes
    Extensions
  13. object ImplicitWd

    Permalink
  14. object Internals

    Permalink
  15. object LsSeq extends Serializable

    Permalink
  16. object OpError

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

    Permalink
  18. object PathError

    Permalink
  19. object PermSet

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

    Permalink
    Definition Classes
    Extensions
  21. object RegexContext

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

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

    Permalink
  24. 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
  25. object Shellable extends Serializable

    Permalink
  26. object Shellout

    Permalink
  27. object cp extends (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.

  28. lazy val cwd: Path

    Permalink

    The current working directory for this process.

  29. val empty: RelPath

    Permalink
    Definition Classes
    RelPathStuff
  30. object exists extends (Path) ⇒ Boolean

    Permalink

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

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

    Permalink
  32. val home: Path

    Permalink

    The user's home directory

  33. object ln extends (Path, Path) ⇒ Unit

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

    Permalink

    List the files and folders in a directory

  35. object mkdir extends (Path) ⇒ Unit

    Permalink

    Makes directories up to the specified path.

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

  36. object mv extends (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

  37. implicit val postfixOps: postfixOps

    Permalink
  38. object read extends Reader with (Path) ⇒ String

    Permalink

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

  39. object rm extends (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

  40. val root: Path

    Permalink

    The root of the filesystem

  41. object stat extends (Path) ⇒ stat with Serializable

    Permalink
  42. val up: RelPath

    Permalink
    Definition Classes
    RelPathStuff
  43. object write extends (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