-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
704 additions
and
28 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
clikt/src/main/kotlin/com/github/ajalt/clikt/output/CliktConsole.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
docs/api/clikt/com.github.ajalt.clikt.core/-clikt-command/echo.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>CliktCommand.echo - clikt</title> | ||
<link rel="stylesheet" href="../../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../../index.html">clikt</a> / <a href="../index.html">com.github.ajalt.clikt.core</a> / <a href="index.html">CliktCommand</a> / <a href="./echo.html">echo</a><br/> | ||
<br/> | ||
<h1>echo</h1> | ||
<a name="com.github.ajalt.clikt.core.CliktCommand$echo(kotlin.Any, kotlin.Boolean, kotlin.Boolean)"></a> | ||
<code><span class="keyword">protected</span> <span class="keyword">fun </span><span class="identifier">echo</span><span class="symbol">(</span><span class="identifier" id="com.github.ajalt.clikt.core.CliktCommand$echo(kotlin.Any, kotlin.Boolean, kotlin.Boolean)/message">message</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.github.ajalt.clikt.core.CliktCommand$echo(kotlin.Any, kotlin.Boolean, kotlin.Boolean)/trailingNewline">trailingNewline</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a> <span class="symbol">=</span> true<span class="symbol">, </span><span class="identifier" id="com.github.ajalt.clikt.core.CliktCommand$echo(kotlin.Any, kotlin.Boolean, kotlin.Boolean)/err">err</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a> <span class="symbol">=</span> false<span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code> | ||
<p>Print the <a href="echo.html#com.github.ajalt.clikt.core.CliktCommand$echo(kotlin.Any, kotlin.Boolean, kotlin.Boolean)/message">message</a> to the screen.</p> | ||
<p>This is similar to <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/print.html">print</a> or <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/println.html">println</a>, but converts newlines to the system line separator.</p> | ||
<p>This is equivalent to calling <a href="../../com.github.ajalt.clikt.output/-term-ui/echo.html">TermUi.echo</a> with the console from the current context.</p> | ||
<h3>Parameters</h3> | ||
<p><a name="message"></a> | ||
<code>message</code> - The message to print.</p> | ||
<p><a name="trailingNewline"></a> | ||
<code>trailingNewline</code> - If true, behave like <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/println.html">println</a>, otherwise behave like <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/print.html">print</a></p> | ||
<p><a name="err"></a> | ||
<code>err</code> - If true, print to stderr instead of stdout</p> | ||
</BODY> | ||
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
docs/api/clikt/com.github.ajalt.clikt.core/-context/-builder/console.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>Context.Builder.console - clikt</title> | ||
<link rel="stylesheet" href="../../../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../../../index.html">clikt</a> / <a href="../../index.html">com.github.ajalt.clikt.core</a> / <a href="../index.html">Context</a> / <a href="index.html">Builder</a> / <a href="./console.html">console</a><br/> | ||
<br/> | ||
<h1>console</h1> | ||
<a name="com.github.ajalt.clikt.core.Context.Builder$console"></a> | ||
<code><span class="keyword">var </span><span class="identifier">console</span><span class="symbol">: </span><a href="../../../com.github.ajalt.clikt.output/-clikt-console/index.html"><span class="identifier">CliktConsole</span></a></code> | ||
<p>The console that will handle reading and writing text.</p> | ||
<p>The default uses <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/System.html">System.in</a> and <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#out">System.out</a>.</p> | ||
</BODY> | ||
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.