Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
feat(v1.1-beta): add integer, bool, and file flag support! :D
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed May 25, 2022
1 parent ec05698 commit 4de7092
Show file tree
Hide file tree
Showing 36 changed files with 897 additions and 91 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ plugins {
kotlin("jvm") version "1.6.21"
}

val VERSION = Version(1, 0, 0, 0, dev.floofy.utils.gradle.ReleaseType.Beta)
val VERSION = Version(1, 1, 0, 0, dev.floofy.utils.gradle.ReleaseType.Beta)
val DOKKA_OUTPUT = "${rootProject.projectDir}/docs"
val JAVA_VERSION = JavaVersion.VERSION_17

Expand Down
6 changes: 3 additions & 3 deletions docs/ai/org.noelware.ai/-ai-command/-ai-command.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</a>
</div>
<div>
1.0-beta </div>
1.1-beta </div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
Expand All @@ -49,11 +49,11 @@ <h1 class="cover"><span>Ai</span><wbr></wbr><span><span>Command</span></span></h
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":dokkaHtml/main"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="-ai-command.html"><span class="token function">AiCommand</span></a><span class="token punctuation">(</span><span class="parameters wrapped"><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;name<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token operator"> = </span>inferName()<span class="token punctuation">, </span></span><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;help<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token operator"> = </span><span class="token string">&quot;&quot;</span><span class="token punctuation">, </span></span><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;usage<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;printUsageIfError<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">false</span></span></span><span class="token punctuation">)</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><h2 class="">Parameters</h2><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span><span>name</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The name of the command, or it'll be inferred by the class name.</p></div></div></div></div></div><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span><span>help</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The documentation of this <a href="index.html">command</a>.</p></div></div></div></div></div><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span><span>usage</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The usage of the command, can be left <code class="lang-kotlin">null</code> to be automatically generated.</p></div></div></div></div></div><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span>print</span><wbr></wbr><span>Usage</span><wbr></wbr><span>If</span><wbr></wbr><span><span>Error</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">If the command should print the usage if an exception had occurred.</p></div></div></div></div></div></div></div></div></div>
<h2 class="">Sources</h2>
<div class="table" data-togglable="Sources"><a data-name="-1506809823%2FSource%2F769193423" anchor-label="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L43" id="-1506809823%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table" data-togglable="Sources"><a data-name="-1506809823%2FSource%2F769193423" anchor-label="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L46" id="-1506809823%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L43">jvm source</a></div>
<div><a href="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L46">jvm source</a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1506809823%2FSource%2F769193423"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
Expand Down
6 changes: 3 additions & 3 deletions docs/ai/org.noelware.ai/-ai-command/-companion/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</a>
</div>
<div>
1.0-beta </div>
1.1-beta </div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
Expand All @@ -52,11 +52,11 @@ <h1 class="cover"><span><span>Companion</span></span></h1>
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Sources">Sources</button></div>
<div class="tabs-section-body">
<h2 class="">Sources</h2>
<div class="table" data-togglable="Sources"><a data-name="667439032%2FSource%2F769193423" anchor-label="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L225" id="667439032%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table" data-togglable="Sources"><a data-name="667439032%2FSource%2F769193423" anchor-label="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L267" id="667439032%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L225">jvm source</a></div>
<div><a href="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L267">jvm source</a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="667439032%2FSource%2F769193423"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
Expand Down
6 changes: 3 additions & 3 deletions docs/ai/org.noelware.ai/-ai-command/add-subcommand.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</a>
</div>
<div>
1.0-beta </div>
1.1-beta </div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
Expand All @@ -49,11 +49,11 @@ <h1 class="cover"><span>add</span><wbr></wbr><span><span>Subcommand</span></span
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":dokkaHtml/main"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="add-subcommand.html"><span class="token function">addSubcommand</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">command<span class="token operator">: </span><a href="index.html">AiCommand</a></span></span><span class="token punctuation">)</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">Adds a subcommand to this <a href="index.html">AiCommand</a>, making the subcommand's parent this command object.</p><h2 class="">Parameters</h2><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span><span>command</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The subcommand to add.</p></div></div></div></div></div></div></div></div></div>
<h2 class="">Sources</h2>
<div class="table" data-togglable="Sources"><a data-name="-40001791%2FSource%2F769193423" anchor-label="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L83" id="-40001791%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table" data-togglable="Sources"><a data-name="-40001791%2FSource%2F769193423" anchor-label="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L86" id="-40001791%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L83">jvm source</a></div>
<div><a href="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L86">jvm source</a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-40001791%2FSource%2F769193423"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
Expand Down
6 changes: 3 additions & 3 deletions docs/ai/org.noelware.ai/-ai-command/add-subcommands.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</a>
</div>
<div>
1.0-beta </div>
1.1-beta </div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
Expand All @@ -49,11 +49,11 @@ <h1 class="cover"><span>add</span><wbr></wbr><span><span>Subcommands</span></spa
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":dokkaHtml/main"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="add-subcommands.html"><span class="token function">addSubcommands</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">vararg </span>commands<span class="token operator">: </span><a href="index.html">AiCommand</a></span></span><span class="token punctuation">)</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">Adds more than one subcommands to this <a href="index.html">AiCommand</a>, making the subcommand's parent this command object.</p><h2 class="">Parameters</h2><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span><span>commands</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The list of subcommands to add.</p></div></div></div></div></div></div></div></div></div>
<h2 class="">Sources</h2>
<div class="table" data-togglable="Sources"><a data-name="-1991521328%2FSource%2F769193423" anchor-label="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L94" id="-1991521328%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table" data-togglable="Sources"><a data-name="-1991521328%2FSource%2F769193423" anchor-label="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L97" id="-1991521328%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L94">jvm source</a></div>
<div><a href="https://github.com/Noelware/ai/tree/master/src/main/kotlin/org/noelware/ai/AiCommand.kt#L97">jvm source</a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1991521328%2FSource%2F769193423"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
Expand Down
Loading

0 comments on commit 4de7092

Please sign in to comment.