Update documentation.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<a title="Process Extension Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">SwiftShell Docs</a> (70% documented)</p>
|
||||
<p><a href="../index.html">SwiftShell Docs</a> (73% documented)</p>
|
||||
<p class="header-right"><a href="https://github.com/kareman/SwiftShell"><img src="../img/gh.png"/>View on GitHub</a></p>
|
||||
</div>
|
||||
</header>
|
||||
@@ -40,6 +40,9 @@
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MainContext.html">MainContext</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/PrintedAsyncCommand.html">PrintedAsyncCommand</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RunOutput.html">RunOutput</a>
|
||||
</li>
|
||||
@@ -52,10 +55,10 @@
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:10SwiftShell5FilesSo11FileManagerCv">Files</a>
|
||||
<a href="../Global Variables.html#/s:10SwiftShell5FilesSo11FileManagerCvp">Files</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:10SwiftShell4mainAA11MainContextCv">main</a>
|
||||
<a href="../Global Variables.html#/s:10SwiftShell4mainAA11MainContextCvp">main</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -85,6 +88,9 @@
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/Process.html">Process</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/Process.html">Process</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/String.html">String</a>
|
||||
</li>
|
||||
@@ -96,9 +102,6 @@
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell1poi10Foundation3URLVAE_SStF">+(_:_:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell2eeoiSbAA12CommandErrorO_ADtF">==(_:_:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell4exits5NeverOs5Error_p_SS4fileSi4linetF">exit(_:file:line:)</a>
|
||||
</li>
|
||||
@@ -118,23 +121,29 @@
|
||||
<a href="../Functions.html#/s:10SwiftShell4openAA14WritableStream_pSS10forWriting_Sb9overwriteSS10FoundationE8EncodingV8encodingtKF">open(forWriting:overwrite:encoding:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell3runAA9RunOutputCSS_SayypGdSb07combineE0tF">run(_:_:combineOutput:)</a>
|
||||
<a href="../Functions.html#/s:10SwiftShell3runAA9RunOutputCSS_ypdSb07combineE0tF">run(_:_:combineOutput:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell3runAA9RunOutputCSS4bash_Sb07combineE0tF">run(bash:combineOutput:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell11runAndPrintySS_SayypGdtKF">runAndPrint(_:_:)</a>
|
||||
<a href="../Functions.html#/s:10SwiftShell11runAndPrintySS_ypdtKF">runAndPrint(_:_:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell11runAndPrintySS4bash_tKF">runAndPrint(bash:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS_SayypGdSS4fileSi4linetF">runAsync(_:_:file:line:)</a>
|
||||
<a href="../Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS_ypdSS4fileSi4linetF">runAsync(_:_:file:line:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell8runAsyncAA0D7CommandCSS4bash_SS4fileSi4linetF">runAsync(bash:file:line:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell16runAsyncAndPrintAA07PrintedD7CommandCSS_ypdSS4fileSi4linetF">runAsyncAndPrint(_:_:file:line:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell16runAsyncAndPrintAA07PrintedD7CommandCSS4bash_SS4fileSi4linetF">runAsyncAndPrint(bash:file:line:)</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Functions.html#/s:10SwiftShell7streamsAA14WritableStream_p_AA08ReadableE0_ptyF">streams()</a>
|
||||
</li>
|
||||
@@ -188,9 +197,9 @@
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:So7ProcessC10SwiftShellE15launchThrowablyyyKF"></a>
|
||||
<a name="//apple_ref/swift/Method/launchThrowably()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:So7ProcessC10SwiftShellE15launchThrowablyyyKF">launchThrowably()</a>
|
||||
<a name="/"></a>
|
||||
<a name="//apple_ref/swift/Method/terminate()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/">terminate()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
@@ -198,21 +207,8 @@
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Launch process.</p>
|
||||
<div class="aside aside-throws">
|
||||
<p class="aside-title">Throws</p>
|
||||
CommandError.inAccessibleExecutable if command could not be executed.
|
||||
<p>Terminates the command by sending the SIGTERM signal</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">launchThrowably</span><span class="p">()</span> <span class="k">throws</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@@ -220,9 +216,9 @@
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:So7ProcessC10SwiftShellE6finishyyKF"></a>
|
||||
<a name="//apple_ref/swift/Method/finish()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:So7ProcessC10SwiftShellE6finishyyKF">finish()</a>
|
||||
<a name="/"></a>
|
||||
<a name="//apple_ref/swift/Method/interrupt()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/">interrupt()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
@@ -230,21 +226,46 @@
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Wait until process is finished.</p>
|
||||
<div class="aside aside-throws">
|
||||
<p class="aside-title">Throws</p>
|
||||
<code>CommandError.returnedErrorCode(command: String, errorcode: Int)</code> if the exit code is anything but 0.
|
||||
|
||||
</div>
|
||||
<p>Interrupts the command by sending the SIGINT signal</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">finish</span><span class="p">()</span> <span class="k">throws</span></code></pre>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/"></a>
|
||||
<a name="//apple_ref/swift/Method/suspend()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/">suspend()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Temporarily suspends a command. Call resume() to resume a suspended command</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/"></a>
|
||||
<a name="//apple_ref/swift/Method/resume()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/">resume()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Resumes a command previously suspended with suspend().</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@@ -254,7 +275,7 @@
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2018 <a class="link" href="" target="_blank" rel="external">kareman</a>. All rights reserved. (Last updated: 2018-03-04)</p>
|
||||
<p>© 2018 <a class="link" href="" target="_blank" rel="external">kareman</a>. All rights reserved. (Last updated: 2018-04-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user