diff --git a/Classes.html b/Classes.html index 5215078..c06dcd4 100644 --- a/Classes.html +++ b/Classes.html @@ -356,7 +356,7 @@ diff --git a/Classes/AsyncCommand.html b/Classes/AsyncCommand.html index be42e0a..ac2ffd8 100644 --- a/Classes/AsyncCommand.html +++ b/Classes/AsyncCommand.html @@ -314,6 +314,11 @@

Wait for this command to finish.

+
+

Warning

+ Will hang if the unread output of either standard output or standard error is larger than 64KB (#52). To work around this problem, read all the output first, even if you’re not going to use it. + +

Throws

CommandError.returnedErrorCode(command: String, errorcode: Int) if the exit code is anything but 0. @@ -331,7 +336,7 @@

Return Value

-

itself

+

self

@@ -418,7 +423,7 @@ diff --git a/Classes/FileHandleStream.html b/Classes/FileHandleStream.html index b723343..d3d1e70 100644 --- a/Classes/FileHandleStream.html +++ b/Classes/FileHandleStream.html @@ -278,7 +278,7 @@ diff --git a/Classes/MainContext.html b/Classes/MainContext.html index 8b6e16e..f44fa42 100644 --- a/Classes/MainContext.html +++ b/Classes/MainContext.html @@ -459,7 +459,7 @@ It lies in the user’s temporary directory and will be automatically delete diff --git a/Classes/RunOutput.html b/Classes/RunOutput.html index 643c76b..93a9568 100644 --- a/Classes/RunOutput.html +++ b/Classes/RunOutput.html @@ -232,14 +232,14 @@
-

Standard output, trimmed for whitespace and newline if it is single-line.

+

Standard output, trimmed of whitespace and newline if it is single-line.

Declaration

Swift

-
public private(set) lazy var stdout: String = RunOutput.cleanUpOutput(self.output.stdout.read())
+
public private(set) lazy var stdout: String =
@@ -259,14 +259,14 @@
-

Standard error, trimmed for whitespace and newline if it is single-line.

+

Standard error, trimmed of whitespace and newline if it is single-line.

Declaration

Swift

-
public private(set) lazy var stderror: String = RunOutput.cleanUpOutput(self.output.stderror.read())
+
public private(set) lazy var stderror: String =
@@ -394,7 +394,7 @@
diff --git a/Classes/StdoutStream.html b/Classes/StdoutStream.html index 71a8730..47dbfa2 100644 --- a/Classes/StdoutStream.html +++ b/Classes/StdoutStream.html @@ -330,7 +330,7 @@ diff --git a/Enums.html b/Enums.html index 643b7b8..aaffda4 100644 --- a/Enums.html +++ b/Enums.html @@ -257,7 +257,7 @@ diff --git a/Enums/CommandError.html b/Enums/CommandError.html index fcf4576..ee2fea9 100644 --- a/Enums/CommandError.html +++ b/Enums/CommandError.html @@ -316,7 +316,7 @@ diff --git a/Enums/FileError.html b/Enums/FileError.html index cf12b43..8b3dcf3 100644 --- a/Enums/FileError.html +++ b/Enums/FileError.html @@ -285,7 +285,7 @@ diff --git a/Extensions.html b/Extensions.html index e2d6ecb..f3b42a6 100644 --- a/Extensions.html +++ b/Extensions.html @@ -321,7 +321,7 @@ diff --git a/Extensions/FileHandle.html b/Extensions/FileHandle.html index 3b8658b..2d732ca 100644 --- a/Extensions/FileHandle.html +++ b/Extensions/FileHandle.html @@ -209,7 +209,7 @@ diff --git a/Extensions/LazyCollectionProtocol.html b/Extensions/LazyCollectionProtocol.html index 2667f5a..ab27631 100644 --- a/Extensions/LazyCollectionProtocol.html +++ b/Extensions/LazyCollectionProtocol.html @@ -257,7 +257,7 @@ a separator, should empty slices be emitted? Defaults to false.

diff --git a/Extensions/Process.html b/Extensions/Process.html index e6348f2..6144ed1 100644 --- a/Extensions/Process.html +++ b/Extensions/Process.html @@ -254,7 +254,7 @@ diff --git a/Extensions/String.html b/Extensions/String.html index b145136..b3a0c4e 100644 --- a/Extensions/String.html +++ b/Extensions/String.html @@ -255,7 +255,7 @@ diff --git a/Functions.html b/Functions.html index 20a6ce7..7c73845 100644 --- a/Functions.html +++ b/Functions.html @@ -206,13 +206,6 @@

Runs a bash shell command.

-
-

Warning

-

If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

- -

_ = runAsync(command).stdout.read()

- -
@@ -544,13 +537,6 @@

Runs a command.

-
-

Warning

-

If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

- -

_ = runAsync(command).stdout.read()

- -
@@ -954,7 +940,7 @@ If the file already exists and overwrite=false, the writing will begin at the en diff --git a/Global Variables.html b/Global Variables.html index 0a3b180..a63713a 100644 --- a/Global Variables.html +++ b/Global Variables.html @@ -248,7 +248,7 @@ diff --git a/Protocols.html b/Protocols.html index c780271..796a07f 100644 --- a/Protocols.html +++ b/Protocols.html @@ -336,7 +336,7 @@ diff --git a/Protocols/CommandRunning.html b/Protocols/CommandRunning.html index d9ef6a4..2020ed6 100644 --- a/Protocols/CommandRunning.html +++ b/Protocols/CommandRunning.html @@ -248,13 +248,6 @@

Runs a bash shell command.

-
-

Warning

-

If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

- -

_ = runAsync(command).stdout.read()

- -
@@ -427,13 +420,6 @@

Runs a command.

-
-

Warning

-

If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

- -

_ = runAsync(command).stdout.read()

- -
@@ -513,7 +499,7 @@

Run executable and return before it is finished.

Warning

- will crash if ‘executable’ could not be launched. + Will crash if ‘executable’ could not be launched.
@@ -641,7 +627,7 @@ diff --git a/Protocols/Context.html b/Protocols/Context.html index f898bc3..e650922 100644 --- a/Protocols/Context.html +++ b/Protocols/Context.html @@ -369,7 +369,7 @@ separate process and changing the directory there will not affect the rest of th diff --git a/Protocols/ReadableStream.html b/Protocols/ReadableStream.html index e5be1ad..6013db9 100644 --- a/Protocols/ReadableStream.html +++ b/Protocols/ReadableStream.html @@ -591,7 +591,7 @@ the handler, it may be called once when stream is closed and empty. diff --git a/Protocols/WritableStream.html b/Protocols/WritableStream.html index 6647b38..00fdc76 100644 --- a/Protocols/WritableStream.html +++ b/Protocols/WritableStream.html @@ -431,7 +431,7 @@ Works exactly the same way as print from Swift’s standard lib diff --git a/Structs.html b/Structs.html index 919012e..28b4570 100644 --- a/Structs.html +++ b/Structs.html @@ -282,7 +282,7 @@ diff --git a/Structs/CustomContext.html b/Structs/CustomContext.html index a169064..b1353bc 100644 --- a/Structs/CustomContext.html +++ b/Structs/CustomContext.html @@ -390,7 +390,7 @@ currentdirectory is the current working directory.

diff --git a/Structs/LazySplitSequence.html b/Structs/LazySplitSequence.html index 5d4a6ab..2e257f9 100644 --- a/Structs/LazySplitSequence.html +++ b/Structs/LazySplitSequence.html @@ -378,7 +378,7 @@ a separator, should empty slices be emitted? Defaults to false.

diff --git a/Structs/PartialSourceLazySplitSequence.html b/Structs/PartialSourceLazySplitSequence.html index 6550f2f..be9e0b0 100644 --- a/Structs/PartialSourceLazySplitSequence.html +++ b/Structs/PartialSourceLazySplitSequence.html @@ -285,7 +285,7 @@ or nil if there are no more collections.

diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes.html index 5215078..c06dcd4 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes.html @@ -356,7 +356,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/AsyncCommand.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/AsyncCommand.html index be42e0a..ac2ffd8 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/AsyncCommand.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/AsyncCommand.html @@ -314,6 +314,11 @@

Wait for this command to finish.

+
+

Warning

+ Will hang if the unread output of either standard output or standard error is larger than 64KB (#52). To work around this problem, read all the output first, even if you’re not going to use it. + +

Throws

CommandError.returnedErrorCode(command: String, errorcode: Int) if the exit code is anything but 0. @@ -331,7 +336,7 @@

Return Value

-

itself

+

self

@@ -418,7 +423,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/FileHandleStream.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/FileHandleStream.html index b723343..d3d1e70 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/FileHandleStream.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/FileHandleStream.html @@ -278,7 +278,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/MainContext.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/MainContext.html index 8b6e16e..f44fa42 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/MainContext.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/MainContext.html @@ -459,7 +459,7 @@ It lies in the user’s temporary directory and will be automatically delete diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/RunOutput.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/RunOutput.html index 643c76b..93a9568 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/RunOutput.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/RunOutput.html @@ -232,14 +232,14 @@
-

Standard output, trimmed for whitespace and newline if it is single-line.

+

Standard output, trimmed of whitespace and newline if it is single-line.

Declaration

Swift

-
public private(set) lazy var stdout: String = RunOutput.cleanUpOutput(self.output.stdout.read())
+
public private(set) lazy var stdout: String =
@@ -259,14 +259,14 @@
-

Standard error, trimmed for whitespace and newline if it is single-line.

+

Standard error, trimmed of whitespace and newline if it is single-line.

Declaration

Swift

-
public private(set) lazy var stderror: String = RunOutput.cleanUpOutput(self.output.stderror.read())
+
public private(set) lazy var stderror: String =
@@ -394,7 +394,7 @@
diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/StdoutStream.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/StdoutStream.html index 71a8730..47dbfa2 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/StdoutStream.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Classes/StdoutStream.html @@ -330,7 +330,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums.html index 643b7b8..aaffda4 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums.html @@ -257,7 +257,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums/CommandError.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums/CommandError.html index fcf4576..ee2fea9 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums/CommandError.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums/CommandError.html @@ -316,7 +316,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums/FileError.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums/FileError.html index cf12b43..8b3dcf3 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums/FileError.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Enums/FileError.html @@ -285,7 +285,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions.html index e2d6ecb..f3b42a6 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions.html @@ -321,7 +321,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/FileHandle.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/FileHandle.html index 3b8658b..2d732ca 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/FileHandle.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/FileHandle.html @@ -209,7 +209,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/LazyCollectionProtocol.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/LazyCollectionProtocol.html index 2667f5a..ab27631 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/LazyCollectionProtocol.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/LazyCollectionProtocol.html @@ -257,7 +257,7 @@ a separator, should empty slices be emitted? Defaults to false.

diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/Process.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/Process.html index e6348f2..6144ed1 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/Process.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/Process.html @@ -254,7 +254,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/String.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/String.html index b145136..b3a0c4e 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/String.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Extensions/String.html @@ -255,7 +255,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Functions.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Functions.html index 20a6ce7..7c73845 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Functions.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Functions.html @@ -206,13 +206,6 @@

Runs a bash shell command.

-
-

Warning

-

If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

- -

_ = runAsync(command).stdout.read()

- -
@@ -544,13 +537,6 @@

Runs a command.

-
-

Warning

-

If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

- -

_ = runAsync(command).stdout.read()

- -
@@ -954,7 +940,7 @@ If the file already exists and overwrite=false, the writing will begin at the en diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Global Variables.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Global Variables.html index 0a3b180..a63713a 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Global Variables.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Global Variables.html @@ -248,7 +248,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols.html index c780271..796a07f 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols.html @@ -336,7 +336,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/CommandRunning.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/CommandRunning.html index d9ef6a4..2020ed6 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/CommandRunning.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/CommandRunning.html @@ -248,13 +248,6 @@

Runs a bash shell command.

-
-

Warning

-

If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

- -

_ = runAsync(command).stdout.read()

- -
@@ -427,13 +420,6 @@

Runs a command.

-
-

Warning

-

If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

- -

_ = runAsync(command).stdout.read()

- -
@@ -513,7 +499,7 @@

Run executable and return before it is finished.

Warning

- will crash if ‘executable’ could not be launched. + Will crash if ‘executable’ could not be launched.
@@ -641,7 +627,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/Context.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/Context.html index f898bc3..e650922 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/Context.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/Context.html @@ -369,7 +369,7 @@ separate process and changing the directory there will not affect the rest of th diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/ReadableStream.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/ReadableStream.html index e5be1ad..6013db9 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/ReadableStream.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/ReadableStream.html @@ -591,7 +591,7 @@ the handler, it may be called once when stream is closed and empty. diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/WritableStream.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/WritableStream.html index 6647b38..00fdc76 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/WritableStream.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Protocols/WritableStream.html @@ -431,7 +431,7 @@ Works exactly the same way as print from Swift’s standard lib diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs.html index 919012e..28b4570 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs.html @@ -282,7 +282,7 @@ diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/CustomContext.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/CustomContext.html index a169064..b1353bc 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/CustomContext.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/CustomContext.html @@ -390,7 +390,7 @@ currentdirectory is the current working directory.

diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/LazySplitSequence.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/LazySplitSequence.html index 5d4a6ab..2e257f9 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/LazySplitSequence.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/LazySplitSequence.html @@ -378,7 +378,7 @@ a separator, should empty slices be emitted? Defaults to false.

diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/PartialSourceLazySplitSequence.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/PartialSourceLazySplitSequence.html index 6550f2f..be9e0b0 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/PartialSourceLazySplitSequence.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/Structs/PartialSourceLazySplitSequence.html @@ -285,7 +285,7 @@ or nil if there are no more collections.

diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/index.html b/docsets/SwiftShell.docset/Contents/Resources/Documents/index.html index 41e6748..4e81c79 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/index.html +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/index.html @@ -441,12 +441,6 @@ The path to the application.
let date = run("date", "-u").stdout
 print("Today's date in UTC is " + date)
 
- -

 

- -

Note: If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

-
_ = runAsync("command").stdout.read()
-
try runAndPrint("executable", "arg") 
 
@@ -609,7 +603,7 @@ The path to the application. diff --git a/docsets/SwiftShell.docset/Contents/Resources/Documents/search.json b/docsets/SwiftShell.docset/Contents/Resources/Documents/search.json index 3885ea4..d3a669a 100644 --- a/docsets/SwiftShell.docset/Contents/Resources/Documents/search.json +++ b/docsets/SwiftShell.docset/Contents/Resources/Documents/search.json @@ -1 +1 @@ -{"Structs/PartialSourceLazySplitSequence.html#/s:10SwiftShell30PartialSourceLazySplitSequenceVACyxGxSgyc_7ElementQz9separatortcfc":{"name":"init(_:separator:)","abstract":"

Creates a lazy sequence by splitting a series of collections repeatedly, as if they were one collection.

","parent_name":"PartialSourceLazySplitSequence"},"Structs/PartialSourceLazySplitSequence.html#/s:10SwiftShell30PartialSourceLazySplitSequenceV4next03SubG0QzSgyF":{"name":"next()","abstract":"

The contents of ‘bases’ up to the next occurrence of ‘separator’.

","parent_name":"PartialSourceLazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV9remaining03SubE0QzSgv":{"name":"remaining","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV9separator7ElementQzv":{"name":"separator","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV16allowEmptySlicesSbv":{"name":"allowEmptySlices","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceVACyxGx_7ElementQz9separatorSb16allowEmptySlicestcfc":{"name":"init(_:separator:allowEmptySlices:)","abstract":"

Creates a lazy sequence by splitting a Collection repeatedly.

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV4next03SubE0QzSgyF":{"name":"next()","abstract":"

The contents of ‘base’ up to the next occurrence of ‘separator’.

","parent_name":"LazySplitSequence"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextVACycfc":{"name":"init()","abstract":"

Creates a blank CustomContext where env and stdin are empty, stdout and stderror discard everything and","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextVAcA0D0_pcfc":{"name":"init(_:)","abstract":"

Creates an identical copy of another Context.

","parent_name":"CustomContext"},"Structs/CustomContext.html":{"name":"CustomContext","abstract":"

Undocumented

"},"Structs/LazySplitSequence.html":{"name":"LazySplitSequence","abstract":"

A sequence from splitting a Collection lazily.

"},"Structs/PartialSourceLazySplitSequence.html":{"name":"PartialSourceLazySplitSequence","abstract":"

A sequence from splitting a series of Collections lazily, as if they were one Collection.

"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP5writeySSF":{"name":"write(_:)","abstract":"

Writes x to the stream.

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP5closeyyF":{"name":"close()","abstract":"

Closes the stream. Must be called on non-file streams when finished writing,","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamPAAE5printySayypGd_SS9separatorSS10terminatortF":{"name":"print(_:separator:terminator:)","abstract":"

Writes the textual representations of the given items into the stream.","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamPAAE5writey10Foundation4DataV4data_tF":{"name":"write(data:)","abstract":"

Writes data to the stream.

","parent_name":"WritableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP8readSomeSSSgyF":{"name":"readSome()","abstract":"

All the text the stream contains so far.","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP4readSSyF":{"name":"read()","abstract":"

Reads everything at once.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5liness12LazySequenceVys03AnyG0VySSGGyF":{"name":"lines()","abstract":"

Splits stream lazily into lines.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5writeyqd__z2to_ts010TextOutputD0Rd__lF":{"name":"write(to:)","abstract":"

Writes the text in this stream to the given TextOutputStream.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5writeyAA08WritableD0_pz2to_tF":{"name":"write(to:)","abstract":"

Writes the text in this stream to the given WritableStream.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE12readSomeData10Foundation0G0VSgyF":{"name":"readSomeData()","abstract":"

All the data the stream contains so far.","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE8readData10Foundation0F0VyF":{"name":"readData()","abstract":"

Reads everything at once.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE8onOutputyyAaB_pcF":{"name":"onOutput(_:)","abstract":"

handler will be called whenever there is new output available.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE14onStringOutputyySScF":{"name":"onStringOutput(_:)","abstract":"

handler will be called whenever there is new text output available.

","parent_name":"ReadableStream"},"Protocols/Context.html#/s:10SwiftShell7ContextP3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextPAAE16debugDescriptionSSv":{"name":"debugDescription","abstract":"

A textual representation of this instance, suitable for debugging.

","parent_name":"Context"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningP7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE3runAA9RunOutputCSS4bash_Sb07combineG0tF":{"name":"run(bash:combineOutput:)","abstract":"

Runs a bash shell command.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE8runAsyncAA0fC0CSS4bash_SS4fileSi4linetF":{"name":"runAsync(bash:file:line:)","abstract":"

Run bash command and return before it is finished.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE11runAndPrintySS4bash_tKF":{"name":"runAndPrint(bash:)","abstract":"

Run bash command and print output and errors.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE3runAA9RunOutputCSS_SayypGdSb07combineG0tF":{"name":"run(_:_:combineOutput:)","abstract":"

Runs a command.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE8runAsyncAA0fC0CSS_SayypGdSS4fileSi4linetF":{"name":"runAsync(_:_:file:line:)","abstract":"

Run executable and return before it is finished.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE11runAndPrintySS_SayypGdtKF":{"name":"runAndPrint(_:_:)","abstract":"

Run executable and print output and errors.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html":{"name":"CommandRunning","abstract":"

Can run commands.

"},"Protocols/Context.html":{"name":"Context","abstract":"

Undocumented

"},"Protocols.html#/CommandRunning":{"name":"CommandRunning","abstract":"

CommandRunning is not available on iOS, tvOS and watchOS.

"},"Protocols/ReadableStream.html":{"name":"ReadableStream","abstract":"

A stream of text. Does as much as possible lazily.

"},"Protocols/WritableStream.html":{"name":"WritableStream","abstract":"

An output stream, like standard output or a writeable file.

"},"Functions.html#/s:10SwiftShell3runAA9RunOutputCSS4bash_Sb07combineE0tF":{"name":"run(bash:combineOutput:)","abstract":"

Runs a bash shell command.

"},"Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS4bash_SS4fileSi4linetF":{"name":"runAsync(bash:file:line:)","abstract":"

Run bash command and return before it is finished.

"},"Functions.html#/s:10SwiftShell11runAndPrintySS4bash_tKF":{"name":"runAndPrint(bash:)","abstract":"

Run bash command and print output and errors.

"},"Functions.html#/s:10SwiftShell4exits5NeverOx12errormessage_Si9errorcodeSS4fileSi4linetlF":{"name":"exit(errormessage:errorcode:file:line:)","abstract":"

Print message to standard error and halt execution.

"},"Functions.html#/s:10SwiftShell4exits5NeverOs5Error_p_SS4fileSi4linetF":{"name":"exit(_:file:line:)","abstract":"

Print error to standard error and halt execution.

"},"Functions.html#/s:10SwiftShell2eeoiSbAA12CommandErrorO_ADtF":{"name":"==(_:_:)","abstract":"

Undocumented

"},"Functions.html#/s:10SwiftShell3runAA9RunOutputCSS_SayypGdSb07combineE0tF":{"name":"run(_:_:combineOutput:)","abstract":"

Runs a command.

"},"Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS_SayypGdSS4fileSi4linetF":{"name":"runAsync(_:_:file:line:)","abstract":"

Run executable and return before it is finished.

"},"Functions.html#/s:10SwiftShell11runAndPrintySS_SayypGdtKF":{"name":"runAndPrint(_:_:)","abstract":"

Run executable and print output and errors.

"},"Functions.html#/s:10SwiftShell1poi10Foundation3URLVAE_SStF":{"name":"+(_:_:)","abstract":"

Append file or directory url to directory url

"},"Functions.html#/s:10SwiftShell4openAA14ReadableStream_pSS_SS10FoundationE8EncodingV8encodingtKF":{"name":"open(_:encoding:)","abstract":"

Open a file for reading, throw if an error occurs.

"},"Functions.html#/s:10SwiftShell4openAA14ReadableStream_p10Foundation3URLV_SSADE8EncodingV8encodingtKF":{"name":"open(_:encoding:)","abstract":"

Open a file for reading, throw if an error occurs.

"},"Functions.html#/s:10SwiftShell4openAA14WritableStream_p10Foundation3URLV10forWriting_Sb9overwriteSSADE8EncodingV8encodingtKF":{"name":"open(forWriting:overwrite:encoding:)","abstract":"

Open a file for writing, create it first if it doesn’t exist."},"Functions.html#/s:10SwiftShell4openAA14WritableStream_pSS10forWriting_Sb9overwriteSS10FoundationE8EncodingV8encodingtKF":{"name":"open(forWriting:overwrite:encoding:)","abstract":"

Open a file for writing, create it first if it doesn’t exist."},"Functions.html#/s:10SwiftShell7streamsAA14WritableStream_p_AA08ReadableE0_ptyF":{"name":"streams()","abstract":"

Creates a pair of streams. What is written to the 1st one can be read from the 2nd one.

"},"Extensions/LazyCollectionProtocol.html#/s:s22LazyCollectionProtocolP10SwiftShellsAARzs9Equatable7ElementRpzs0B08Elements_11SubSequenceRPzlE5splitAC0a5SplitJ0VyAHQzGAF9separator_Sb16allowEmptySlicestF":{"name":"split(separator:allowEmptySlices:)","abstract":"

Creates a lazy sequence by splitting this Collection repeatedly.

","parent_name":"LazyCollectionProtocol"},"Extensions/String.html#/s:SS10SwiftShellE7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"String"},"Extensions/String.html#/s:SS10SwiftShellE5linesSaySSGyF":{"name":"lines()","abstract":"

Split text into lines (as separated by newlines).

","parent_name":"String"},"Extensions/FileHandle.html#/nullDev":{"name":"nullDev","abstract":"

Returns ’/dev/null’. ‘nullDevice’ has not been implemented yet in Swift Foundation.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE7nullDevABvZ":{"name":"nullDev","abstract":"

Returns ’.nullDevice’. ‘nullDevice’ has not been implemented yet in Swift Foundation.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE8readSomeSSSgSS10FoundationE8EncodingV8encoding_tF":{"name":"readSome(encoding:)","abstract":"

Read what is available, as a String.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE4readS2S10FoundationE8EncodingV8encoding_tF":{"name":"read(encoding:)","abstract":"

Read to the end, as a String.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE5writeySS_SS10FoundationE8EncodingV8encodingtF":{"name":"write(_:encoding:)","abstract":"

Undocumented

","parent_name":"FileHandle"},"Extensions/Process.html#/s:So7ProcessC10SwiftShellE15launchThrowablyyyKF":{"name":"launchThrowably()","abstract":"

Launch process.

","parent_name":"Process"},"Extensions/Process.html#/s:So7ProcessC10SwiftShellE6finishyyKF":{"name":"finish()","abstract":"

Wait until process is finished.

","parent_name":"Process"},"Extensions/Process.html":{"name":"Process"},"Extensions/FileHandle.html":{"name":"FileHandle"},"Extensions/String.html":{"name":"String","abstract":"

Let Strings run commands using itself as stdin.

"},"Extensions/LazyCollectionProtocol.html":{"name":"LazyCollectionProtocol"},"Enums/FileError.html#/s:10SwiftShell9FileErrorO8notFoundACSS4path_tcACmF":{"name":"notFound","abstract":"

Undocumented

","parent_name":"FileError"},"Enums/FileError.html#/s:10SwiftShell9FileErrorO05checkC0ySSKFZ":{"name":"checkFile(_:)","abstract":"

Undocumented

","parent_name":"FileError"},"Enums/FileError.html#/s:s23CustomStringConvertibleP11descriptionSSv":{"name":"description","parent_name":"FileError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO08returnedD4CodeACSS7command_Si9errorcodetcACmF":{"name":"returnedErrorCode","abstract":"

Exit code was not zero.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO22inAccessibleExecutableACSS4path_tcACmF":{"name":"inAccessibleExecutable","abstract":"

Command could not be executed.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO9errorcodeSiv":{"name":"errorcode","abstract":"

Exit code for this error.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:s23CustomStringConvertibleP11descriptionSSv":{"name":"description","parent_name":"CommandError"},"Enums/CommandError.html":{"name":"CommandError","abstract":"

Error type for commands.

"},"Enums/FileError.html":{"name":"FileError","abstract":"

Error type for file commands.

"},"Global Variables.html#/s:10SwiftShell4mainAA11MainContextCv":{"name":"main","abstract":"

Undocumented

"},"Global Variables.html#/s:10SwiftShell5FilesSo11FileManagerCv":{"name":"Files","abstract":"

The default FileManager

"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamC10filehandleSo0cD0Cv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamCACSo0cD0C_SS10FoundationE8EncodingV8encodingtcfc":{"name":"init(_:encoding:)","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC7defaultACvZ":{"name":"default","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell14WritableStreamP5writeySSF":{"name":"write(_:)","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell14WritableStreamP5closeyyF":{"name":"close()","parent_name":"StdoutStream"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

The default character encoding used throughout SwiftShell.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC13tempdirectorySSv":{"name":"tempdirectory","abstract":"

The tempdirectory is unique each time a script is run and is created the first time it is used.","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC9argumentsSaySSGv":{"name":"arguments","abstract":"

The arguments this executable was launched with. Use main.path to get the path.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC4pathSSv":{"name":"path","abstract":"

The path to the currently running executable. Will be empty in playgrounds.

","parent_name":"MainContext"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC6stdoutAA14ReadableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC8stderrorAA14ReadableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC9isRunningSbv":{"name":"isRunning","abstract":"

Is the command still running?

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC4stopyyF":{"name":"stop()","abstract":"

Terminates command.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC6finishACyKF":{"name":"finish()","abstract":"

Wait for this command to finish.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC8exitcodeSiyF":{"name":"exitcode()","abstract":"

Wait for command to finish, then return with exit code.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC12onCompletionACyACcF":{"name":"onCompletion(_:)","abstract":"

Takes a closure to be called when the command has finished.

","parent_name":"AsyncCommand"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC5errorAA12CommandErrorOSgv":{"name":"error","abstract":"

The error from running the command, if any.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC6stdoutSSv":{"name":"stdout","abstract":"

Standard output, trimmed for whitespace and newline if it is single-line.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC8stderrorSSv":{"name":"stderror","abstract":"

Standard error, trimmed for whitespace and newline if it is single-line.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC8exitcodeSiv":{"name":"exitcode","abstract":"

The exit code of the command. Anything but 0 means there was an error.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC9succeededSbv":{"name":"succeeded","abstract":"

Checks if the exit code is 0.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC2aaoiA2C_ACyXKtFZ":{"name":"&&(_:_:)","abstract":"

Run the first command, then the second one only if the first succeeded.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC2oooiA2C_ACyXKtFZ":{"name":"||(_:_:)","abstract":"

Run the first command, then the second one only if the first failed.

","parent_name":"RunOutput"},"Classes/RunOutput.html":{"name":"RunOutput","abstract":"

Output from a run command.

"},"Classes/AsyncCommand.html":{"name":"AsyncCommand","abstract":"

Output from the ‘runAsync’ methods.

"},"Classes/MainContext.html":{"name":"MainContext","abstract":"

Undocumented

"},"Classes/StdoutStream.html":{"name":"StdoutStream","abstract":"

Singleton WritableStream used only for printing to stdout.

"},"Classes/FileHandleStream.html":{"name":"FileHandleStream","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Global Variables.html":{"name":"Global Variables","abstract":"

The following global variables are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Extensions.html":{"name":"Extensions","abstract":"

The following extensions are available globally.

"},"Functions.html":{"name":"Functions","abstract":"

The following functions are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} \ No newline at end of file +{"Structs/PartialSourceLazySplitSequence.html#/s:10SwiftShell30PartialSourceLazySplitSequenceVACyxGxSgyc_7ElementQz9separatortcfc":{"name":"init(_:separator:)","abstract":"

Creates a lazy sequence by splitting a series of collections repeatedly, as if they were one collection.

","parent_name":"PartialSourceLazySplitSequence"},"Structs/PartialSourceLazySplitSequence.html#/s:10SwiftShell30PartialSourceLazySplitSequenceV4next03SubG0QzSgyF":{"name":"next()","abstract":"

The contents of ‘bases’ up to the next occurrence of ‘separator’.

","parent_name":"PartialSourceLazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV9remaining03SubE0QzSgv":{"name":"remaining","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV9separator7ElementQzv":{"name":"separator","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV16allowEmptySlicesSbv":{"name":"allowEmptySlices","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceVACyxGx_7ElementQz9separatorSb16allowEmptySlicestcfc":{"name":"init(_:separator:allowEmptySlices:)","abstract":"

Creates a lazy sequence by splitting a Collection repeatedly.

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV4next03SubE0QzSgyF":{"name":"next()","abstract":"

The contents of ‘base’ up to the next occurrence of ‘separator’.

","parent_name":"LazySplitSequence"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextVACycfc":{"name":"init()","abstract":"

Creates a blank CustomContext where env and stdin are empty, stdout and stderror discard everything and","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextVAcA0D0_pcfc":{"name":"init(_:)","abstract":"

Creates an identical copy of another Context.

","parent_name":"CustomContext"},"Structs/CustomContext.html":{"name":"CustomContext","abstract":"

Undocumented

"},"Structs/LazySplitSequence.html":{"name":"LazySplitSequence","abstract":"

A sequence from splitting a Collection lazily.

"},"Structs/PartialSourceLazySplitSequence.html":{"name":"PartialSourceLazySplitSequence","abstract":"

A sequence from splitting a series of Collections lazily, as if they were one Collection.

"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP5writeySSF":{"name":"write(_:)","abstract":"

Writes x to the stream.

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP5closeyyF":{"name":"close()","abstract":"

Closes the stream. Must be called on non-file streams when finished writing,","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamPAAE5printySayypGd_SS9separatorSS10terminatortF":{"name":"print(_:separator:terminator:)","abstract":"

Writes the textual representations of the given items into the stream.","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamPAAE5writey10Foundation4DataV4data_tF":{"name":"write(data:)","abstract":"

Writes data to the stream.

","parent_name":"WritableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP8readSomeSSSgyF":{"name":"readSome()","abstract":"

All the text the stream contains so far.","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP4readSSyF":{"name":"read()","abstract":"

Reads everything at once.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5liness12LazySequenceVys03AnyG0VySSGGyF":{"name":"lines()","abstract":"

Splits stream lazily into lines.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5writeyqd__z2to_ts010TextOutputD0Rd__lF":{"name":"write(to:)","abstract":"

Writes the text in this stream to the given TextOutputStream.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5writeyAA08WritableD0_pz2to_tF":{"name":"write(to:)","abstract":"

Writes the text in this stream to the given WritableStream.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE12readSomeData10Foundation0G0VSgyF":{"name":"readSomeData()","abstract":"

All the data the stream contains so far.","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE8readData10Foundation0F0VyF":{"name":"readData()","abstract":"

Reads everything at once.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE8onOutputyyAaB_pcF":{"name":"onOutput(_:)","abstract":"

handler will be called whenever there is new output available.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE14onStringOutputyySScF":{"name":"onStringOutput(_:)","abstract":"

handler will be called whenever there is new text output available.

","parent_name":"ReadableStream"},"Protocols/Context.html#/s:10SwiftShell7ContextP3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextPAAE16debugDescriptionSSv":{"name":"debugDescription","abstract":"

A textual representation of this instance, suitable for debugging.

","parent_name":"Context"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningP7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE3runAA9RunOutputCSS4bash_Sb07combineG0tF":{"name":"run(bash:combineOutput:)","abstract":"

Runs a bash shell command.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE8runAsyncAA0fC0CSS4bash_SS4fileSi4linetF":{"name":"runAsync(bash:file:line:)","abstract":"

Run bash command and return before it is finished.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE11runAndPrintySS4bash_tKF":{"name":"runAndPrint(bash:)","abstract":"

Run bash command and print output and errors.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE3runAA9RunOutputCSS_SayypGdSb07combineG0tF":{"name":"run(_:_:combineOutput:)","abstract":"

Runs a command.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE8runAsyncAA0fC0CSS_SayypGdSS4fileSi4linetF":{"name":"runAsync(_:_:file:line:)","abstract":"

Run executable and return before it is finished.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE11runAndPrintySS_SayypGdtKF":{"name":"runAndPrint(_:_:)","abstract":"

Run executable and print output and errors.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html":{"name":"CommandRunning","abstract":"

Can run commands.

"},"Protocols/Context.html":{"name":"Context","abstract":"

Undocumented

"},"Protocols.html#/CommandRunning":{"name":"CommandRunning","abstract":"

CommandRunning is not available on iOS, tvOS and watchOS.

"},"Protocols/ReadableStream.html":{"name":"ReadableStream","abstract":"

A stream of text. Does as much as possible lazily.

"},"Protocols/WritableStream.html":{"name":"WritableStream","abstract":"

An output stream, like standard output or a writeable file.

"},"Functions.html#/s:10SwiftShell3runAA9RunOutputCSS4bash_Sb07combineE0tF":{"name":"run(bash:combineOutput:)","abstract":"

Runs a bash shell command.

"},"Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS4bash_SS4fileSi4linetF":{"name":"runAsync(bash:file:line:)","abstract":"

Run bash command and return before it is finished.

"},"Functions.html#/s:10SwiftShell11runAndPrintySS4bash_tKF":{"name":"runAndPrint(bash:)","abstract":"

Run bash command and print output and errors.

"},"Functions.html#/s:10SwiftShell4exits5NeverOx12errormessage_Si9errorcodeSS4fileSi4linetlF":{"name":"exit(errormessage:errorcode:file:line:)","abstract":"

Print message to standard error and halt execution.

"},"Functions.html#/s:10SwiftShell4exits5NeverOs5Error_p_SS4fileSi4linetF":{"name":"exit(_:file:line:)","abstract":"

Print error to standard error and halt execution.

"},"Functions.html#/s:10SwiftShell2eeoiSbAA12CommandErrorO_ADtF":{"name":"==(_:_:)","abstract":"

Undocumented

"},"Functions.html#/s:10SwiftShell3runAA9RunOutputCSS_SayypGdSb07combineE0tF":{"name":"run(_:_:combineOutput:)","abstract":"

Runs a command.

"},"Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS_SayypGdSS4fileSi4linetF":{"name":"runAsync(_:_:file:line:)","abstract":"

Run executable and return before it is finished.

"},"Functions.html#/s:10SwiftShell11runAndPrintySS_SayypGdtKF":{"name":"runAndPrint(_:_:)","abstract":"

Run executable and print output and errors.

"},"Functions.html#/s:10SwiftShell1poi10Foundation3URLVAE_SStF":{"name":"+(_:_:)","abstract":"

Append file or directory url to directory url

"},"Functions.html#/s:10SwiftShell4openAA14ReadableStream_pSS_SS10FoundationE8EncodingV8encodingtKF":{"name":"open(_:encoding:)","abstract":"

Open a file for reading, throw if an error occurs.

"},"Functions.html#/s:10SwiftShell4openAA14ReadableStream_p10Foundation3URLV_SSADE8EncodingV8encodingtKF":{"name":"open(_:encoding:)","abstract":"

Open a file for reading, throw if an error occurs.

"},"Functions.html#/s:10SwiftShell4openAA14WritableStream_p10Foundation3URLV10forWriting_Sb9overwriteSSADE8EncodingV8encodingtKF":{"name":"open(forWriting:overwrite:encoding:)","abstract":"

Open a file for writing, create it first if it doesn’t exist."},"Functions.html#/s:10SwiftShell4openAA14WritableStream_pSS10forWriting_Sb9overwriteSS10FoundationE8EncodingV8encodingtKF":{"name":"open(forWriting:overwrite:encoding:)","abstract":"

Open a file for writing, create it first if it doesn’t exist."},"Functions.html#/s:10SwiftShell7streamsAA14WritableStream_p_AA08ReadableE0_ptyF":{"name":"streams()","abstract":"

Creates a pair of streams. What is written to the 1st one can be read from the 2nd one.

"},"Extensions/LazyCollectionProtocol.html#/s:s22LazyCollectionProtocolP10SwiftShellsAARzs9Equatable7ElementRpzs0B08Elements_11SubSequenceRPzlE5splitAC0a5SplitJ0VyAHQzGAF9separator_Sb16allowEmptySlicestF":{"name":"split(separator:allowEmptySlices:)","abstract":"

Creates a lazy sequence by splitting this Collection repeatedly.

","parent_name":"LazyCollectionProtocol"},"Extensions/String.html#/s:SS10SwiftShellE7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"String"},"Extensions/String.html#/s:SS10SwiftShellE5linesSaySSGyF":{"name":"lines()","abstract":"

Split text into lines (as separated by newlines).

","parent_name":"String"},"Extensions/FileHandle.html#/nullDev":{"name":"nullDev","abstract":"

Returns ’/dev/null’. ‘nullDevice’ has not been implemented yet in Swift Foundation.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE7nullDevABvZ":{"name":"nullDev","abstract":"

Returns ’.nullDevice’. ‘nullDevice’ has not been implemented yet in Swift Foundation.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE8readSomeSSSgSS10FoundationE8EncodingV8encoding_tF":{"name":"readSome(encoding:)","abstract":"

Read what is available, as a String.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE4readS2S10FoundationE8EncodingV8encoding_tF":{"name":"read(encoding:)","abstract":"

Read to the end, as a String.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE5writeySS_SS10FoundationE8EncodingV8encodingtF":{"name":"write(_:encoding:)","abstract":"

Undocumented

","parent_name":"FileHandle"},"Extensions/Process.html#/s:So7ProcessC10SwiftShellE15launchThrowablyyyKF":{"name":"launchThrowably()","abstract":"

Launch process.

","parent_name":"Process"},"Extensions/Process.html#/s:So7ProcessC10SwiftShellE6finishyyKF":{"name":"finish()","abstract":"

Wait until process is finished.

","parent_name":"Process"},"Extensions/Process.html":{"name":"Process"},"Extensions/FileHandle.html":{"name":"FileHandle"},"Extensions/String.html":{"name":"String","abstract":"

Let Strings run commands using itself as stdin.

"},"Extensions/LazyCollectionProtocol.html":{"name":"LazyCollectionProtocol"},"Enums/FileError.html#/s:10SwiftShell9FileErrorO8notFoundACSS4path_tcACmF":{"name":"notFound","abstract":"

Undocumented

","parent_name":"FileError"},"Enums/FileError.html#/s:10SwiftShell9FileErrorO05checkC0ySSKFZ":{"name":"checkFile(_:)","abstract":"

Undocumented

","parent_name":"FileError"},"Enums/FileError.html#/s:s23CustomStringConvertibleP11descriptionSSv":{"name":"description","parent_name":"FileError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO08returnedD4CodeACSS7command_Si9errorcodetcACmF":{"name":"returnedErrorCode","abstract":"

Exit code was not zero.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO22inAccessibleExecutableACSS4path_tcACmF":{"name":"inAccessibleExecutable","abstract":"

Command could not be executed.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO9errorcodeSiv":{"name":"errorcode","abstract":"

Exit code for this error.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:s23CustomStringConvertibleP11descriptionSSv":{"name":"description","parent_name":"CommandError"},"Enums/CommandError.html":{"name":"CommandError","abstract":"

Error type for commands.

"},"Enums/FileError.html":{"name":"FileError","abstract":"

Error type for file commands.

"},"Global Variables.html#/s:10SwiftShell4mainAA11MainContextCv":{"name":"main","abstract":"

Undocumented

"},"Global Variables.html#/s:10SwiftShell5FilesSo11FileManagerCv":{"name":"Files","abstract":"

The default FileManager

"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamC10filehandleSo0cD0Cv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamCACSo0cD0C_SS10FoundationE8EncodingV8encodingtcfc":{"name":"init(_:encoding:)","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC7defaultACvZ":{"name":"default","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell14WritableStreamP5writeySSF":{"name":"write(_:)","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell14WritableStreamP5closeyyF":{"name":"close()","parent_name":"StdoutStream"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

The default character encoding used throughout SwiftShell.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC13tempdirectorySSv":{"name":"tempdirectory","abstract":"

The tempdirectory is unique each time a script is run and is created the first time it is used.","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC9argumentsSaySSGv":{"name":"arguments","abstract":"

The arguments this executable was launched with. Use main.path to get the path.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC4pathSSv":{"name":"path","abstract":"

The path to the currently running executable. Will be empty in playgrounds.

","parent_name":"MainContext"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC6stdoutAA14ReadableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC8stderrorAA14ReadableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC9isRunningSbv":{"name":"isRunning","abstract":"

Is the command still running?

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC4stopyyF":{"name":"stop()","abstract":"

Terminates command.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC6finishACyKF":{"name":"finish()","abstract":"

Wait for this command to finish.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC8exitcodeSiyF":{"name":"exitcode()","abstract":"

Wait for command to finish, then return with exit code.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC12onCompletionACyACcF":{"name":"onCompletion(_:)","abstract":"

Takes a closure to be called when the command has finished.

","parent_name":"AsyncCommand"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC5errorAA12CommandErrorOSgv":{"name":"error","abstract":"

The error from running the command, if any.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC6stdoutSSv":{"name":"stdout","abstract":"

Standard output, trimmed of whitespace and newline if it is single-line.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC8stderrorSSv":{"name":"stderror","abstract":"

Standard error, trimmed of whitespace and newline if it is single-line.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC8exitcodeSiv":{"name":"exitcode","abstract":"

The exit code of the command. Anything but 0 means there was an error.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC9succeededSbv":{"name":"succeeded","abstract":"

Checks if the exit code is 0.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC2aaoiA2C_ACyXKtFZ":{"name":"&&(_:_:)","abstract":"

Run the first command, then the second one only if the first succeeded.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC2oooiA2C_ACyXKtFZ":{"name":"||(_:_:)","abstract":"

Run the first command, then the second one only if the first failed.

","parent_name":"RunOutput"},"Classes/RunOutput.html":{"name":"RunOutput","abstract":"

Output from a run command.

"},"Classes/AsyncCommand.html":{"name":"AsyncCommand","abstract":"

Output from the ‘runAsync’ methods.

"},"Classes/MainContext.html":{"name":"MainContext","abstract":"

Undocumented

"},"Classes/StdoutStream.html":{"name":"StdoutStream","abstract":"

Singleton WritableStream used only for printing to stdout.

"},"Classes/FileHandleStream.html":{"name":"FileHandleStream","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Global Variables.html":{"name":"Global Variables","abstract":"

The following global variables are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Extensions.html":{"name":"Extensions","abstract":"

The following extensions are available globally.

"},"Functions.html":{"name":"Functions","abstract":"

The following functions are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} \ No newline at end of file diff --git a/docsets/SwiftShell.tgz b/docsets/SwiftShell.tgz index 5ebd878..9744f5b 100644 Binary files a/docsets/SwiftShell.tgz and b/docsets/SwiftShell.tgz differ diff --git a/index.html b/index.html index 41e6748..4e81c79 100644 --- a/index.html +++ b/index.html @@ -441,12 +441,6 @@ The path to the application.
let date = run("date", "-u").stdout
 print("Today's date in UTC is " + date)
 
- -

 

- -

Note: If the output from the command into either standard output or standard error is larger than 65,536 bytes, the command will hang and never finish (#52). To work around this problem, use runAsync instead and read all the output, even if you’re not going to use it:

-
_ = runAsync("command").stdout.read()
-
try runAndPrint("executable", "arg") 
 
@@ -609,7 +603,7 @@ The path to the application. diff --git a/search.json b/search.json index 3885ea4..d3a669a 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -{"Structs/PartialSourceLazySplitSequence.html#/s:10SwiftShell30PartialSourceLazySplitSequenceVACyxGxSgyc_7ElementQz9separatortcfc":{"name":"init(_:separator:)","abstract":"

Creates a lazy sequence by splitting a series of collections repeatedly, as if they were one collection.

","parent_name":"PartialSourceLazySplitSequence"},"Structs/PartialSourceLazySplitSequence.html#/s:10SwiftShell30PartialSourceLazySplitSequenceV4next03SubG0QzSgyF":{"name":"next()","abstract":"

The contents of ‘bases’ up to the next occurrence of ‘separator’.

","parent_name":"PartialSourceLazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV9remaining03SubE0QzSgv":{"name":"remaining","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV9separator7ElementQzv":{"name":"separator","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV16allowEmptySlicesSbv":{"name":"allowEmptySlices","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceVACyxGx_7ElementQz9separatorSb16allowEmptySlicestcfc":{"name":"init(_:separator:allowEmptySlices:)","abstract":"

Creates a lazy sequence by splitting a Collection repeatedly.

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV4next03SubE0QzSgyF":{"name":"next()","abstract":"

The contents of ‘base’ up to the next occurrence of ‘separator’.

","parent_name":"LazySplitSequence"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextVACycfc":{"name":"init()","abstract":"

Creates a blank CustomContext where env and stdin are empty, stdout and stderror discard everything and","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextVAcA0D0_pcfc":{"name":"init(_:)","abstract":"

Creates an identical copy of another Context.

","parent_name":"CustomContext"},"Structs/CustomContext.html":{"name":"CustomContext","abstract":"

Undocumented

"},"Structs/LazySplitSequence.html":{"name":"LazySplitSequence","abstract":"

A sequence from splitting a Collection lazily.

"},"Structs/PartialSourceLazySplitSequence.html":{"name":"PartialSourceLazySplitSequence","abstract":"

A sequence from splitting a series of Collections lazily, as if they were one Collection.

"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP5writeySSF":{"name":"write(_:)","abstract":"

Writes x to the stream.

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP5closeyyF":{"name":"close()","abstract":"

Closes the stream. Must be called on non-file streams when finished writing,","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamPAAE5printySayypGd_SS9separatorSS10terminatortF":{"name":"print(_:separator:terminator:)","abstract":"

Writes the textual representations of the given items into the stream.","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamPAAE5writey10Foundation4DataV4data_tF":{"name":"write(data:)","abstract":"

Writes data to the stream.

","parent_name":"WritableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP8readSomeSSSgyF":{"name":"readSome()","abstract":"

All the text the stream contains so far.","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP4readSSyF":{"name":"read()","abstract":"

Reads everything at once.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5liness12LazySequenceVys03AnyG0VySSGGyF":{"name":"lines()","abstract":"

Splits stream lazily into lines.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5writeyqd__z2to_ts010TextOutputD0Rd__lF":{"name":"write(to:)","abstract":"

Writes the text in this stream to the given TextOutputStream.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5writeyAA08WritableD0_pz2to_tF":{"name":"write(to:)","abstract":"

Writes the text in this stream to the given WritableStream.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE12readSomeData10Foundation0G0VSgyF":{"name":"readSomeData()","abstract":"

All the data the stream contains so far.","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE8readData10Foundation0F0VyF":{"name":"readData()","abstract":"

Reads everything at once.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE8onOutputyyAaB_pcF":{"name":"onOutput(_:)","abstract":"

handler will be called whenever there is new output available.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE14onStringOutputyySScF":{"name":"onStringOutput(_:)","abstract":"

handler will be called whenever there is new text output available.

","parent_name":"ReadableStream"},"Protocols/Context.html#/s:10SwiftShell7ContextP3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextPAAE16debugDescriptionSSv":{"name":"debugDescription","abstract":"

A textual representation of this instance, suitable for debugging.

","parent_name":"Context"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningP7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE3runAA9RunOutputCSS4bash_Sb07combineG0tF":{"name":"run(bash:combineOutput:)","abstract":"

Runs a bash shell command.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE8runAsyncAA0fC0CSS4bash_SS4fileSi4linetF":{"name":"runAsync(bash:file:line:)","abstract":"

Run bash command and return before it is finished.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE11runAndPrintySS4bash_tKF":{"name":"runAndPrint(bash:)","abstract":"

Run bash command and print output and errors.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE3runAA9RunOutputCSS_SayypGdSb07combineG0tF":{"name":"run(_:_:combineOutput:)","abstract":"

Runs a command.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE8runAsyncAA0fC0CSS_SayypGdSS4fileSi4linetF":{"name":"runAsync(_:_:file:line:)","abstract":"

Run executable and return before it is finished.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE11runAndPrintySS_SayypGdtKF":{"name":"runAndPrint(_:_:)","abstract":"

Run executable and print output and errors.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html":{"name":"CommandRunning","abstract":"

Can run commands.

"},"Protocols/Context.html":{"name":"Context","abstract":"

Undocumented

"},"Protocols.html#/CommandRunning":{"name":"CommandRunning","abstract":"

CommandRunning is not available on iOS, tvOS and watchOS.

"},"Protocols/ReadableStream.html":{"name":"ReadableStream","abstract":"

A stream of text. Does as much as possible lazily.

"},"Protocols/WritableStream.html":{"name":"WritableStream","abstract":"

An output stream, like standard output or a writeable file.

"},"Functions.html#/s:10SwiftShell3runAA9RunOutputCSS4bash_Sb07combineE0tF":{"name":"run(bash:combineOutput:)","abstract":"

Runs a bash shell command.

"},"Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS4bash_SS4fileSi4linetF":{"name":"runAsync(bash:file:line:)","abstract":"

Run bash command and return before it is finished.

"},"Functions.html#/s:10SwiftShell11runAndPrintySS4bash_tKF":{"name":"runAndPrint(bash:)","abstract":"

Run bash command and print output and errors.

"},"Functions.html#/s:10SwiftShell4exits5NeverOx12errormessage_Si9errorcodeSS4fileSi4linetlF":{"name":"exit(errormessage:errorcode:file:line:)","abstract":"

Print message to standard error and halt execution.

"},"Functions.html#/s:10SwiftShell4exits5NeverOs5Error_p_SS4fileSi4linetF":{"name":"exit(_:file:line:)","abstract":"

Print error to standard error and halt execution.

"},"Functions.html#/s:10SwiftShell2eeoiSbAA12CommandErrorO_ADtF":{"name":"==(_:_:)","abstract":"

Undocumented

"},"Functions.html#/s:10SwiftShell3runAA9RunOutputCSS_SayypGdSb07combineE0tF":{"name":"run(_:_:combineOutput:)","abstract":"

Runs a command.

"},"Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS_SayypGdSS4fileSi4linetF":{"name":"runAsync(_:_:file:line:)","abstract":"

Run executable and return before it is finished.

"},"Functions.html#/s:10SwiftShell11runAndPrintySS_SayypGdtKF":{"name":"runAndPrint(_:_:)","abstract":"

Run executable and print output and errors.

"},"Functions.html#/s:10SwiftShell1poi10Foundation3URLVAE_SStF":{"name":"+(_:_:)","abstract":"

Append file or directory url to directory url

"},"Functions.html#/s:10SwiftShell4openAA14ReadableStream_pSS_SS10FoundationE8EncodingV8encodingtKF":{"name":"open(_:encoding:)","abstract":"

Open a file for reading, throw if an error occurs.

"},"Functions.html#/s:10SwiftShell4openAA14ReadableStream_p10Foundation3URLV_SSADE8EncodingV8encodingtKF":{"name":"open(_:encoding:)","abstract":"

Open a file for reading, throw if an error occurs.

"},"Functions.html#/s:10SwiftShell4openAA14WritableStream_p10Foundation3URLV10forWriting_Sb9overwriteSSADE8EncodingV8encodingtKF":{"name":"open(forWriting:overwrite:encoding:)","abstract":"

Open a file for writing, create it first if it doesn’t exist."},"Functions.html#/s:10SwiftShell4openAA14WritableStream_pSS10forWriting_Sb9overwriteSS10FoundationE8EncodingV8encodingtKF":{"name":"open(forWriting:overwrite:encoding:)","abstract":"

Open a file for writing, create it first if it doesn’t exist."},"Functions.html#/s:10SwiftShell7streamsAA14WritableStream_p_AA08ReadableE0_ptyF":{"name":"streams()","abstract":"

Creates a pair of streams. What is written to the 1st one can be read from the 2nd one.

"},"Extensions/LazyCollectionProtocol.html#/s:s22LazyCollectionProtocolP10SwiftShellsAARzs9Equatable7ElementRpzs0B08Elements_11SubSequenceRPzlE5splitAC0a5SplitJ0VyAHQzGAF9separator_Sb16allowEmptySlicestF":{"name":"split(separator:allowEmptySlices:)","abstract":"

Creates a lazy sequence by splitting this Collection repeatedly.

","parent_name":"LazyCollectionProtocol"},"Extensions/String.html#/s:SS10SwiftShellE7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"String"},"Extensions/String.html#/s:SS10SwiftShellE5linesSaySSGyF":{"name":"lines()","abstract":"

Split text into lines (as separated by newlines).

","parent_name":"String"},"Extensions/FileHandle.html#/nullDev":{"name":"nullDev","abstract":"

Returns ’/dev/null’. ‘nullDevice’ has not been implemented yet in Swift Foundation.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE7nullDevABvZ":{"name":"nullDev","abstract":"

Returns ’.nullDevice’. ‘nullDevice’ has not been implemented yet in Swift Foundation.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE8readSomeSSSgSS10FoundationE8EncodingV8encoding_tF":{"name":"readSome(encoding:)","abstract":"

Read what is available, as a String.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE4readS2S10FoundationE8EncodingV8encoding_tF":{"name":"read(encoding:)","abstract":"

Read to the end, as a String.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE5writeySS_SS10FoundationE8EncodingV8encodingtF":{"name":"write(_:encoding:)","abstract":"

Undocumented

","parent_name":"FileHandle"},"Extensions/Process.html#/s:So7ProcessC10SwiftShellE15launchThrowablyyyKF":{"name":"launchThrowably()","abstract":"

Launch process.

","parent_name":"Process"},"Extensions/Process.html#/s:So7ProcessC10SwiftShellE6finishyyKF":{"name":"finish()","abstract":"

Wait until process is finished.

","parent_name":"Process"},"Extensions/Process.html":{"name":"Process"},"Extensions/FileHandle.html":{"name":"FileHandle"},"Extensions/String.html":{"name":"String","abstract":"

Let Strings run commands using itself as stdin.

"},"Extensions/LazyCollectionProtocol.html":{"name":"LazyCollectionProtocol"},"Enums/FileError.html#/s:10SwiftShell9FileErrorO8notFoundACSS4path_tcACmF":{"name":"notFound","abstract":"

Undocumented

","parent_name":"FileError"},"Enums/FileError.html#/s:10SwiftShell9FileErrorO05checkC0ySSKFZ":{"name":"checkFile(_:)","abstract":"

Undocumented

","parent_name":"FileError"},"Enums/FileError.html#/s:s23CustomStringConvertibleP11descriptionSSv":{"name":"description","parent_name":"FileError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO08returnedD4CodeACSS7command_Si9errorcodetcACmF":{"name":"returnedErrorCode","abstract":"

Exit code was not zero.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO22inAccessibleExecutableACSS4path_tcACmF":{"name":"inAccessibleExecutable","abstract":"

Command could not be executed.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO9errorcodeSiv":{"name":"errorcode","abstract":"

Exit code for this error.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:s23CustomStringConvertibleP11descriptionSSv":{"name":"description","parent_name":"CommandError"},"Enums/CommandError.html":{"name":"CommandError","abstract":"

Error type for commands.

"},"Enums/FileError.html":{"name":"FileError","abstract":"

Error type for file commands.

"},"Global Variables.html#/s:10SwiftShell4mainAA11MainContextCv":{"name":"main","abstract":"

Undocumented

"},"Global Variables.html#/s:10SwiftShell5FilesSo11FileManagerCv":{"name":"Files","abstract":"

The default FileManager

"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamC10filehandleSo0cD0Cv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamCACSo0cD0C_SS10FoundationE8EncodingV8encodingtcfc":{"name":"init(_:encoding:)","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC7defaultACvZ":{"name":"default","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell14WritableStreamP5writeySSF":{"name":"write(_:)","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell14WritableStreamP5closeyyF":{"name":"close()","parent_name":"StdoutStream"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

The default character encoding used throughout SwiftShell.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC13tempdirectorySSv":{"name":"tempdirectory","abstract":"

The tempdirectory is unique each time a script is run and is created the first time it is used.","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC9argumentsSaySSGv":{"name":"arguments","abstract":"

The arguments this executable was launched with. Use main.path to get the path.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC4pathSSv":{"name":"path","abstract":"

The path to the currently running executable. Will be empty in playgrounds.

","parent_name":"MainContext"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC6stdoutAA14ReadableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC8stderrorAA14ReadableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC9isRunningSbv":{"name":"isRunning","abstract":"

Is the command still running?

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC4stopyyF":{"name":"stop()","abstract":"

Terminates command.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC6finishACyKF":{"name":"finish()","abstract":"

Wait for this command to finish.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC8exitcodeSiyF":{"name":"exitcode()","abstract":"

Wait for command to finish, then return with exit code.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC12onCompletionACyACcF":{"name":"onCompletion(_:)","abstract":"

Takes a closure to be called when the command has finished.

","parent_name":"AsyncCommand"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC5errorAA12CommandErrorOSgv":{"name":"error","abstract":"

The error from running the command, if any.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC6stdoutSSv":{"name":"stdout","abstract":"

Standard output, trimmed for whitespace and newline if it is single-line.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC8stderrorSSv":{"name":"stderror","abstract":"

Standard error, trimmed for whitespace and newline if it is single-line.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC8exitcodeSiv":{"name":"exitcode","abstract":"

The exit code of the command. Anything but 0 means there was an error.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC9succeededSbv":{"name":"succeeded","abstract":"

Checks if the exit code is 0.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC2aaoiA2C_ACyXKtFZ":{"name":"&&(_:_:)","abstract":"

Run the first command, then the second one only if the first succeeded.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC2oooiA2C_ACyXKtFZ":{"name":"||(_:_:)","abstract":"

Run the first command, then the second one only if the first failed.

","parent_name":"RunOutput"},"Classes/RunOutput.html":{"name":"RunOutput","abstract":"

Output from a run command.

"},"Classes/AsyncCommand.html":{"name":"AsyncCommand","abstract":"

Output from the ‘runAsync’ methods.

"},"Classes/MainContext.html":{"name":"MainContext","abstract":"

Undocumented

"},"Classes/StdoutStream.html":{"name":"StdoutStream","abstract":"

Singleton WritableStream used only for printing to stdout.

"},"Classes/FileHandleStream.html":{"name":"FileHandleStream","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Global Variables.html":{"name":"Global Variables","abstract":"

The following global variables are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Extensions.html":{"name":"Extensions","abstract":"

The following extensions are available globally.

"},"Functions.html":{"name":"Functions","abstract":"

The following functions are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} \ No newline at end of file +{"Structs/PartialSourceLazySplitSequence.html#/s:10SwiftShell30PartialSourceLazySplitSequenceVACyxGxSgyc_7ElementQz9separatortcfc":{"name":"init(_:separator:)","abstract":"

Creates a lazy sequence by splitting a series of collections repeatedly, as if they were one collection.

","parent_name":"PartialSourceLazySplitSequence"},"Structs/PartialSourceLazySplitSequence.html#/s:10SwiftShell30PartialSourceLazySplitSequenceV4next03SubG0QzSgyF":{"name":"next()","abstract":"

The contents of ‘bases’ up to the next occurrence of ‘separator’.

","parent_name":"PartialSourceLazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV9remaining03SubE0QzSgv":{"name":"remaining","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV9separator7ElementQzv":{"name":"separator","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV16allowEmptySlicesSbv":{"name":"allowEmptySlices","abstract":"

Undocumented

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceVACyxGx_7ElementQz9separatorSb16allowEmptySlicestcfc":{"name":"init(_:separator:allowEmptySlices:)","abstract":"

Creates a lazy sequence by splitting a Collection repeatedly.

","parent_name":"LazySplitSequence"},"Structs/LazySplitSequence.html#/s:10SwiftShell17LazySplitSequenceV4next03SubE0QzSgyF":{"name":"next()","abstract":"

The contents of ‘base’ up to the next occurrence of ‘separator’.

","parent_name":"LazySplitSequence"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextV16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextVACycfc":{"name":"init()","abstract":"

Creates a blank CustomContext where env and stdin are empty, stdout and stderror discard everything and","parent_name":"CustomContext"},"Structs/CustomContext.html#/s:10SwiftShell13CustomContextVAcA0D0_pcfc":{"name":"init(_:)","abstract":"

Creates an identical copy of another Context.

","parent_name":"CustomContext"},"Structs/CustomContext.html":{"name":"CustomContext","abstract":"

Undocumented

"},"Structs/LazySplitSequence.html":{"name":"LazySplitSequence","abstract":"

A sequence from splitting a Collection lazily.

"},"Structs/PartialSourceLazySplitSequence.html":{"name":"PartialSourceLazySplitSequence","abstract":"

A sequence from splitting a series of Collections lazily, as if they were one Collection.

"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP5writeySSF":{"name":"write(_:)","abstract":"

Writes x to the stream.

","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamP5closeyyF":{"name":"close()","abstract":"

Closes the stream. Must be called on non-file streams when finished writing,","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamPAAE5printySayypGd_SS9separatorSS10terminatortF":{"name":"print(_:separator:terminator:)","abstract":"

Writes the textual representations of the given items into the stream.","parent_name":"WritableStream"},"Protocols/WritableStream.html#/s:10SwiftShell14WritableStreamPAAE5writey10Foundation4DataV4data_tF":{"name":"write(data:)","abstract":"

Writes data to the stream.

","parent_name":"WritableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP8readSomeSSSgyF":{"name":"readSome()","abstract":"

All the text the stream contains so far.","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamP4readSSyF":{"name":"read()","abstract":"

Reads everything at once.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5liness12LazySequenceVys03AnyG0VySSGGyF":{"name":"lines()","abstract":"

Splits stream lazily into lines.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5writeyqd__z2to_ts010TextOutputD0Rd__lF":{"name":"write(to:)","abstract":"

Writes the text in this stream to the given TextOutputStream.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE5writeyAA08WritableD0_pz2to_tF":{"name":"write(to:)","abstract":"

Writes the text in this stream to the given WritableStream.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE12readSomeData10Foundation0G0VSgyF":{"name":"readSomeData()","abstract":"

All the data the stream contains so far.","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE8readData10Foundation0F0VyF":{"name":"readData()","abstract":"

Reads everything at once.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE8onOutputyyAaB_pcF":{"name":"onOutput(_:)","abstract":"

handler will be called whenever there is new output available.

","parent_name":"ReadableStream"},"Protocols/ReadableStream.html#/s:10SwiftShell14ReadableStreamPAAE14onStringOutputyySScF":{"name":"onStringOutput(_:)","abstract":"

handler will be called whenever there is new text output available.

","parent_name":"ReadableStream"},"Protocols/Context.html#/s:10SwiftShell7ContextP3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextP16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"Context"},"Protocols/Context.html#/s:10SwiftShell7ContextPAAE16debugDescriptionSSv":{"name":"debugDescription","abstract":"

A textual representation of this instance, suitable for debugging.

","parent_name":"Context"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningP7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE3runAA9RunOutputCSS4bash_Sb07combineG0tF":{"name":"run(bash:combineOutput:)","abstract":"

Runs a bash shell command.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE8runAsyncAA0fC0CSS4bash_SS4fileSi4linetF":{"name":"runAsync(bash:file:line:)","abstract":"

Run bash command and return before it is finished.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE11runAndPrintySS4bash_tKF":{"name":"runAndPrint(bash:)","abstract":"

Run bash command and print output and errors.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE3runAA9RunOutputCSS_SayypGdSb07combineG0tF":{"name":"run(_:_:combineOutput:)","abstract":"

Runs a command.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE8runAsyncAA0fC0CSS_SayypGdSS4fileSi4linetF":{"name":"runAsync(_:_:file:line:)","abstract":"

Run executable and return before it is finished.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html#/s:10SwiftShell14CommandRunningPAAE11runAndPrintySS_SayypGdtKF":{"name":"runAndPrint(_:_:)","abstract":"

Run executable and print output and errors.

","parent_name":"CommandRunning"},"Protocols/CommandRunning.html":{"name":"CommandRunning","abstract":"

Can run commands.

"},"Protocols/Context.html":{"name":"Context","abstract":"

Undocumented

"},"Protocols.html#/CommandRunning":{"name":"CommandRunning","abstract":"

CommandRunning is not available on iOS, tvOS and watchOS.

"},"Protocols/ReadableStream.html":{"name":"ReadableStream","abstract":"

A stream of text. Does as much as possible lazily.

"},"Protocols/WritableStream.html":{"name":"WritableStream","abstract":"

An output stream, like standard output or a writeable file.

"},"Functions.html#/s:10SwiftShell3runAA9RunOutputCSS4bash_Sb07combineE0tF":{"name":"run(bash:combineOutput:)","abstract":"

Runs a bash shell command.

"},"Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS4bash_SS4fileSi4linetF":{"name":"runAsync(bash:file:line:)","abstract":"

Run bash command and return before it is finished.

"},"Functions.html#/s:10SwiftShell11runAndPrintySS4bash_tKF":{"name":"runAndPrint(bash:)","abstract":"

Run bash command and print output and errors.

"},"Functions.html#/s:10SwiftShell4exits5NeverOx12errormessage_Si9errorcodeSS4fileSi4linetlF":{"name":"exit(errormessage:errorcode:file:line:)","abstract":"

Print message to standard error and halt execution.

"},"Functions.html#/s:10SwiftShell4exits5NeverOs5Error_p_SS4fileSi4linetF":{"name":"exit(_:file:line:)","abstract":"

Print error to standard error and halt execution.

"},"Functions.html#/s:10SwiftShell2eeoiSbAA12CommandErrorO_ADtF":{"name":"==(_:_:)","abstract":"

Undocumented

"},"Functions.html#/s:10SwiftShell3runAA9RunOutputCSS_SayypGdSb07combineE0tF":{"name":"run(_:_:combineOutput:)","abstract":"

Runs a command.

"},"Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS_SayypGdSS4fileSi4linetF":{"name":"runAsync(_:_:file:line:)","abstract":"

Run executable and return before it is finished.

"},"Functions.html#/s:10SwiftShell11runAndPrintySS_SayypGdtKF":{"name":"runAndPrint(_:_:)","abstract":"

Run executable and print output and errors.

"},"Functions.html#/s:10SwiftShell1poi10Foundation3URLVAE_SStF":{"name":"+(_:_:)","abstract":"

Append file or directory url to directory url

"},"Functions.html#/s:10SwiftShell4openAA14ReadableStream_pSS_SS10FoundationE8EncodingV8encodingtKF":{"name":"open(_:encoding:)","abstract":"

Open a file for reading, throw if an error occurs.

"},"Functions.html#/s:10SwiftShell4openAA14ReadableStream_p10Foundation3URLV_SSADE8EncodingV8encodingtKF":{"name":"open(_:encoding:)","abstract":"

Open a file for reading, throw if an error occurs.

"},"Functions.html#/s:10SwiftShell4openAA14WritableStream_p10Foundation3URLV10forWriting_Sb9overwriteSSADE8EncodingV8encodingtKF":{"name":"open(forWriting:overwrite:encoding:)","abstract":"

Open a file for writing, create it first if it doesn’t exist."},"Functions.html#/s:10SwiftShell4openAA14WritableStream_pSS10forWriting_Sb9overwriteSS10FoundationE8EncodingV8encodingtKF":{"name":"open(forWriting:overwrite:encoding:)","abstract":"

Open a file for writing, create it first if it doesn’t exist."},"Functions.html#/s:10SwiftShell7streamsAA14WritableStream_p_AA08ReadableE0_ptyF":{"name":"streams()","abstract":"

Creates a pair of streams. What is written to the 1st one can be read from the 2nd one.

"},"Extensions/LazyCollectionProtocol.html#/s:s22LazyCollectionProtocolP10SwiftShellsAARzs9Equatable7ElementRpzs0B08Elements_11SubSequenceRPzlE5splitAC0a5SplitJ0VyAHQzGAF9separator_Sb16allowEmptySlicestF":{"name":"split(separator:allowEmptySlices:)","abstract":"

Creates a lazy sequence by splitting this Collection repeatedly.

","parent_name":"LazyCollectionProtocol"},"Extensions/String.html#/s:SS10SwiftShellE7contextAA7Context_pv":{"name":"context","abstract":"

Undocumented

","parent_name":"String"},"Extensions/String.html#/s:SS10SwiftShellE5linesSaySSGyF":{"name":"lines()","abstract":"

Split text into lines (as separated by newlines).

","parent_name":"String"},"Extensions/FileHandle.html#/nullDev":{"name":"nullDev","abstract":"

Returns ’/dev/null’. ‘nullDevice’ has not been implemented yet in Swift Foundation.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE7nullDevABvZ":{"name":"nullDev","abstract":"

Returns ’.nullDevice’. ‘nullDevice’ has not been implemented yet in Swift Foundation.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE8readSomeSSSgSS10FoundationE8EncodingV8encoding_tF":{"name":"readSome(encoding:)","abstract":"

Read what is available, as a String.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE4readS2S10FoundationE8EncodingV8encoding_tF":{"name":"read(encoding:)","abstract":"

Read to the end, as a String.

","parent_name":"FileHandle"},"Extensions/FileHandle.html#/s:So10FileHandleC10SwiftShellE5writeySS_SS10FoundationE8EncodingV8encodingtF":{"name":"write(_:encoding:)","abstract":"

Undocumented

","parent_name":"FileHandle"},"Extensions/Process.html#/s:So7ProcessC10SwiftShellE15launchThrowablyyyKF":{"name":"launchThrowably()","abstract":"

Launch process.

","parent_name":"Process"},"Extensions/Process.html#/s:So7ProcessC10SwiftShellE6finishyyKF":{"name":"finish()","abstract":"

Wait until process is finished.

","parent_name":"Process"},"Extensions/Process.html":{"name":"Process"},"Extensions/FileHandle.html":{"name":"FileHandle"},"Extensions/String.html":{"name":"String","abstract":"

Let Strings run commands using itself as stdin.

"},"Extensions/LazyCollectionProtocol.html":{"name":"LazyCollectionProtocol"},"Enums/FileError.html#/s:10SwiftShell9FileErrorO8notFoundACSS4path_tcACmF":{"name":"notFound","abstract":"

Undocumented

","parent_name":"FileError"},"Enums/FileError.html#/s:10SwiftShell9FileErrorO05checkC0ySSKFZ":{"name":"checkFile(_:)","abstract":"

Undocumented

","parent_name":"FileError"},"Enums/FileError.html#/s:s23CustomStringConvertibleP11descriptionSSv":{"name":"description","parent_name":"FileError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO08returnedD4CodeACSS7command_Si9errorcodetcACmF":{"name":"returnedErrorCode","abstract":"

Exit code was not zero.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO22inAccessibleExecutableACSS4path_tcACmF":{"name":"inAccessibleExecutable","abstract":"

Command could not be executed.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:10SwiftShell12CommandErrorO9errorcodeSiv":{"name":"errorcode","abstract":"

Exit code for this error.

","parent_name":"CommandError"},"Enums/CommandError.html#/s:s23CustomStringConvertibleP11descriptionSSv":{"name":"description","parent_name":"CommandError"},"Enums/CommandError.html":{"name":"CommandError","abstract":"

Error type for commands.

"},"Enums/FileError.html":{"name":"FileError","abstract":"

Error type for file commands.

"},"Global Variables.html#/s:10SwiftShell4mainAA11MainContextCv":{"name":"main","abstract":"

Undocumented

"},"Global Variables.html#/s:10SwiftShell5FilesSo11FileManagerCv":{"name":"Files","abstract":"

The default FileManager

"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamC10filehandleSo0cD0Cv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/FileHandleStream.html#/s:10SwiftShell16FileHandleStreamCACSo0cD0C_SS10FoundationE8EncodingV8encodingtcfc":{"name":"init(_:encoding:)","abstract":"

Undocumented

","parent_name":"FileHandleStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC10filehandleSo10FileHandleCv":{"name":"filehandle","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell12StdoutStreamC7defaultACvZ":{"name":"default","abstract":"

Undocumented

","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell14WritableStreamP5writeySSF":{"name":"write(_:)","parent_name":"StdoutStream"},"Classes/StdoutStream.html#/s:10SwiftShell14WritableStreamP5closeyyF":{"name":"close()","parent_name":"StdoutStream"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC8encodingSS10FoundationE8EncodingVv":{"name":"encoding","abstract":"

The default character encoding used throughout SwiftShell.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC3envs10DictionaryVyS2SGv":{"name":"env","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC5stdinAA14ReadableStream_pv":{"name":"stdin","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC6stdoutAA14WritableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC8stderrorAA14WritableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC16currentdirectorySSv":{"name":"currentdirectory","abstract":"

The current working directory.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC13tempdirectorySSv":{"name":"tempdirectory","abstract":"

The tempdirectory is unique each time a script is run and is created the first time it is used.","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC9argumentsSaySSGv":{"name":"arguments","abstract":"

The arguments this executable was launched with. Use main.path to get the path.

","parent_name":"MainContext"},"Classes/MainContext.html#/s:10SwiftShell11MainContextC4pathSSv":{"name":"path","abstract":"

The path to the currently running executable. Will be empty in playgrounds.

","parent_name":"MainContext"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC6stdoutAA14ReadableStream_pv":{"name":"stdout","abstract":"

Undocumented

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC8stderrorAA14ReadableStream_pv":{"name":"stderror","abstract":"

Undocumented

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC9isRunningSbv":{"name":"isRunning","abstract":"

Is the command still running?

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC4stopyyF":{"name":"stop()","abstract":"

Terminates command.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC6finishACyKF":{"name":"finish()","abstract":"

Wait for this command to finish.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC8exitcodeSiyF":{"name":"exitcode()","abstract":"

Wait for command to finish, then return with exit code.

","parent_name":"AsyncCommand"},"Classes/AsyncCommand.html#/s:10SwiftShell12AsyncCommandC12onCompletionACyACcF":{"name":"onCompletion(_:)","abstract":"

Takes a closure to be called when the command has finished.

","parent_name":"AsyncCommand"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC5errorAA12CommandErrorOSgv":{"name":"error","abstract":"

The error from running the command, if any.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC6stdoutSSv":{"name":"stdout","abstract":"

Standard output, trimmed of whitespace and newline if it is single-line.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC8stderrorSSv":{"name":"stderror","abstract":"

Standard error, trimmed of whitespace and newline if it is single-line.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC8exitcodeSiv":{"name":"exitcode","abstract":"

The exit code of the command. Anything but 0 means there was an error.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC9succeededSbv":{"name":"succeeded","abstract":"

Checks if the exit code is 0.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC2aaoiA2C_ACyXKtFZ":{"name":"&&(_:_:)","abstract":"

Run the first command, then the second one only if the first succeeded.

","parent_name":"RunOutput"},"Classes/RunOutput.html#/s:10SwiftShell9RunOutputC2oooiA2C_ACyXKtFZ":{"name":"||(_:_:)","abstract":"

Run the first command, then the second one only if the first failed.

","parent_name":"RunOutput"},"Classes/RunOutput.html":{"name":"RunOutput","abstract":"

Output from a run command.

"},"Classes/AsyncCommand.html":{"name":"AsyncCommand","abstract":"

Output from the ‘runAsync’ methods.

"},"Classes/MainContext.html":{"name":"MainContext","abstract":"

Undocumented

"},"Classes/StdoutStream.html":{"name":"StdoutStream","abstract":"

Singleton WritableStream used only for printing to stdout.

"},"Classes/FileHandleStream.html":{"name":"FileHandleStream","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Global Variables.html":{"name":"Global Variables","abstract":"

The following global variables are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Extensions.html":{"name":"Extensions","abstract":"

The following extensions are available globally.

"},"Functions.html":{"name":"Functions","abstract":"

The following functions are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} \ No newline at end of file diff --git a/undocumented.json b/undocumented.json index 88a00e2..2830b73 100644 --- a/undocumented.json +++ b/undocumented.json @@ -2,35 +2,35 @@ "warnings": [ { "file": "/Users/karemorstol/Programming/SwiftShell/SwiftShell3/Sources/SwiftShell/Command.swift", - "line": 52, + "line": 53, "symbol": "CommandRunning.context", "symbol_kind": "source.lang.swift.decl.var.instance", "warning": "undocumented" }, { "file": "/Users/karemorstol/Programming/SwiftShell/SwiftShell3/Sources/SwiftShell/Command.swift", - "line": 56, + "line": 57, "symbol": "CommandRunning.context", "symbol_kind": "source.lang.swift.decl.var.instance", "warning": "undocumented" }, { "file": "/Users/karemorstol/Programming/SwiftShell/SwiftShell3/Sources/SwiftShell/Command.swift", - "line": 123, + "line": 124, "symbol": "==(_:_:)", "symbol_kind": "source.lang.swift.decl.function.free", "warning": "undocumented" }, { "file": "/Users/karemorstol/Programming/SwiftShell/SwiftShell3/Sources/SwiftShell/Command.swift", - "line": 259, + "line": 279, "symbol": "AsyncCommand.stdout", "symbol_kind": "source.lang.swift.decl.var.instance", "warning": "undocumented" }, { "file": "/Users/karemorstol/Programming/SwiftShell/SwiftShell3/Sources/SwiftShell/Command.swift", - "line": 260, + "line": 280, "symbol": "AsyncCommand.stderror", "symbol_kind": "source.lang.swift.decl.var.instance", "warning": "undocumented"