replpp.shaded.os
Members list
Type members
Classlikes
Extractor to let you easily pattern match on os.Paths. Lets you do
Extractor to let you easily pattern match on os.Paths. Lets you do
@ val base/segment/filename = pwd
base: Path = Path(Vector("Users", "haoyi", "Dropbox (Personal)"))
segment: String = "Workspace"
filename: String = "Ammonite"
To break apart a path and extract various pieces of it.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
/.type
A path which is either an absolute Path, a relative RelPath, or a ResourcePath with shared APIs and implementations.
A path which is either an absolute Path, a relative RelPath, or a ResourcePath with shared APIs and implementations.
Most of the filesystem-independent path-manipulation logic that lets you splice paths together or navigate in and out of paths lives in this interface
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait BasePathImplclass Pathclass RelPathclass ResourcePathclass SubPathtrait FilePathtrait SegmentedPathShow all
Attributes
- Supertypes
- Known subtypes
Contains the accumulated output for the invocation of a subprocess command.
Contains the accumulated output for the invocation of a subprocess command.
Apart from the exit code, the primary data-structure is a sequence of byte chunks, tagged with Left for stdout and Right for stderr. This is interleaved roughly in the order it was emitted by the subprocess, and reflects what a user would have see if the subprocess was run manually.
Derived from that, is the aggregate out and err StreamValues, wrapping stdout/stderr respectively, and providing convenient access to the aggregate output of each stream, as bytes or strings or lines.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GlobInterpolator.type
Lets you pattern match strings with interpolated glob-variables
Lets you pattern match strings with interpolated glob-variables
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Inherit the input/output stream from the current process
Inherit the input/output stream from the current process
Attributes
- Supertypes
- Self type
-
Inherit.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Internals.type
An absolute path on the filesystem. Note that the path is normalized and cannot contain any empty "", "." or ".." segments
An absolute path on the filesystem. Note that the path is normalized and cannot contain any empty "", "." or ".." segments
Attributes
- Companion
- object
- Supertypes
-
trait BasePathImpltrait ReadablePathtrait FilePathtrait BasePathclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ProcessOutputclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ArrayPathChunk[T]class RelPathChunkclass SeqPathChunk[T]class StringPathChunkclass SubPathChunkclass SymbolPathChunkShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object JavaIoFileConvertibleobject NioPathConvertibleobject StringConvertibleobject UriPathConvertible
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PathConvertible.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PathError.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ProcessOutputtrait ProcessInputclass Objecttrait Matchableclass AnyShow all
A set of permissions; can be converted easily to the rw-rwx-r-x form via toString, or to a set of PosixFilePermissions via toSet and the other way via PermSet.fromString/PermSet.fromSet
A set of permissions; can be converted easily to the rw-rwx-r-x form via toString, or to a set of PosixFilePermissions via toSet and the other way via PermSet.fromString/PermSet.fromSet
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Pipe the input/output stream to the current process to be used via java.lang.Process#{getInputStream,getOutputStream,getErrorStream}
Pipe the input/output stream to the current process to be used via java.lang.Process#{getInputStream,getOutputStream,getErrorStream}
Attributes
- Supertypes
- Self type
-
Pipe.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PosixStatInfo.type
Represents the configuration of a SubProcess's input stream. Can either be os.Inherit, os.Pipe, os.Path or a os.Source
Represents the configuration of a SubProcess's input stream. Can either be os.Inherit, os.Pipe, os.Path or a os.Source
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProcessInput.type
Represents the configuration of a SubProcess's output or error stream. Can either be os.Inherit, os.Pipe, os.Path or a os.ProcessOutput
Represents the configuration of a SubProcess's output or error stream. Can either be os.Inherit, os.Pipe, os.Path or a os.ProcessOutput
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Inheritclass PathAppendRedirectclass PathRedirectobject Pipeclass ReadBytesclass ReadlinesShow all
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProcessOutput.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Pathclass ResourcePath
A relative 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.
A relative 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.
Attributes
- Companion
- object
- Supertypes
-
trait SegmentedPathtrait BasePathImpltrait FilePathtrait BasePathclass Objecttrait Matchableclass AnyShow all
Thrown when you try to read from a resource that doesn't exist.
Thrown when you try to read from a resource that doesn't exist.
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ResourcePath.type
Represents path to a resource on the java classpath.
Represents path to a resource on the java classpath.
Classloaders are tricky: http://stackoverflow.com/questions/12292926
Attributes
- Companion
- object
- Supertypes
-
trait SegmentedPathtrait ReadablePathtrait BasePathImpltrait BasePathclass Objecttrait Matchableclass AnyShow all
Represents a possible root where classpath resources can be loaded from; either a ResourceRoot.ClassLoader or a ResourceRoot.Class. Resources loaded from classloaders are always loaded via their absolute path, while resources loaded via classes are always loaded relatively.
Represents a possible root where classpath resources can be loaded from; either a ResourceRoot.ClassLoader or a ResourceRoot.Class. Resources loaded from classloaders are always loaded via their absolute path, while resources loaded via classes are always loaded relatively.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Classclass ClassLoader
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ResourceRoot.type
A source which is guaranteeds to provide a SeekableByteChannel
A source which is guaranteeds to provide a SeekableByteChannel
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class ChannelSource
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SeekableSource.type
Attributes
- Supertypes
- Known subtypes
An implicit wrapper defining the things that can be "interpolated" directly into a subprocess call.
An implicit wrapper defining the things that can be "interpolated" directly into a subprocess call.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A source of bytes; must provide either an InputStream or a SeekableByteChannel to read from. Can be constructed implicitly from strings, byte arrays, inputstreams, channels or file paths
A source of bytes; must provide either an InputStream or a SeekableByteChannel to read from. Can be constructed implicitly from strings, byte arrays, inputstreams, channels or file paths
Attributes
- Companion
- object
- Supertypes
- Known subtypes
Attributes
The result from doing an system stat on a particular path.
The result from doing an system stat on a particular path.
Note: ctime is not same as ctime (Change Time) in stat, it is creation time maybe fall back to mtime if system not supported it.
Created via stat! filePath.
If you want more information, use stat.full
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A relative path on the filesystem, without any .. or . segments
A relative path on the filesystem, without any .. or . segments
Attributes
- Companion
- object
- Supertypes
-
trait SegmentedPathtrait BasePathImpltrait FilePathtrait BasePathclass Objecttrait Matchableclass AnyShow all
Represents a spawn subprocess that has started and may or may not have completed.
Represents a spawn subprocess that has started and may or may not have completed.
Attributes
- Companion
- object
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SubProcess.type
Thrown when a shellout command results in a non-zero exit code.
Thrown when a shellout command results in a non-zero exit code.
Doesn't contain any additional information apart from the CommandResult that is normally returned, but ensures that failures in subprocesses happen loudly and won't get ignored unless intentionally caught
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Source
Convenience APIs around java.lang.Process and java.lang.ProcessBuilder:
Convenience APIs around java.lang.Process and java.lang.ProcessBuilder:
-
os.proc.call provides a convenient wrapper for "function-like" processes that you invoke with some input, whose entire output you need, but otherwise do not have any intricate back-and-forth communication
-
os.proc.stream provides a lower level API: rather than providing the output all at once, you pass in callbacks it invokes whenever there is a chunk of output received from the spawned process.
-
os.proc(...) provides the lowest level API: an simple Scala API around java.lang.ProcessBuilder, that spawns a normal java.lang.Process for you to deal with. You can then interact with it normally through the standard stdin/stdout/stderr streams, using whatever protocol you want
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Concrete fields
The current working directory for this process.
The current working directory for this process.