FAIL
+That command has exited with a failed exit code.
diff --git a/build.gradle.kts b/build.gradle.kts index 91dc5a7..dff72f2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 diff --git a/docs/ai/org.noelware.ai/-ai-command/-ai-command.html b/docs/ai/org.noelware.ai/-ai-command/-ai-command.html index 7af6712..3578228 100644 --- a/docs/ai/org.noelware.ai/-ai-command/-ai-command.html +++ b/docs/ai/org.noelware.ai/-ai-command/-ai-command.html @@ -31,7 +31,7 @@
The name of the command, or it'll be inferred by the class name.
The documentation of this command.
The usage of the command, can be left null
to be automatically generated.
If the command should print the usage if an exception had occurred.
Adds a subcommand to this AiCommand, making the subcommand's parent this command object.
The subcommand to add.
Adds more than one subcommands to this AiCommand, making the subcommand's parent this command object.
The list of subcommands to add.
Adds an argument flag, that must require a value (if needed).
The name of the argument flag.
The help message of this argument flag.
The long name to use.
If the argument flag is required or not.
Returns the current context object that this command has access to. Use the setContext function to use a different context.
Adds a boolean flag, that must require a value (if needed).
The name of the argument flag.
The help message of this argument flag.
The long name to use.
If the argument flag is required or not.
Returns the option as a string, if it wasn't found, then it throws an IllegalStateException
Returns the option as a string, if it has the option or null
.
Executes the command with the arguments used.
object MyCommand: AiCommand("owo", "uwu!") {
override fun run(args: List<String>): AiPhase = AiPhase.PRINT_USAGE
}
fun main(args: Array<String>) = MyCommand.main(args)
Executes the command and returns the phase of the command as the return type.
The AiPhase refers to what we need to do next once we have ran the command. The following phases are:
AiPhase.PRINT_USAGE: If we should print the usage to the standard output.
AiPhase.FINISHED: The leading command has finished, and we do nothing.
The left-over, positional arguments available.
Executes the command and returns the phase of the command as the return type.
The AiPhase refers to what we need to do next once we have ran the command. The following phases are:
AiPhase.PRINT_USAGE: If we should print the usage to the standard output.
AiPhase.FINISHED: The leading command has finished, and we do nothing.
AiPhase.FAIL: The command has failed to do a specific action.
The left-over, positional arguments available.
The command has finished.
The command has finished.
The command wants to print its usage.
The command wants to print its usage.
Returns the option as a file, if the name is an absolute path.
The name of the argument
If the file must be a directory, cannot be linked with mustBeFile.
If the fist MUST be a file object, cannot be linked with mustBeDir.
If the file MUST exist, if not, it'll bark.
Returns the option as a string, if it wasn't found, then it throws an IllegalStateException
Returns the option as a string, if it has the option or null
.
Returns the option as a string, if it wasn't found, then it throws an IllegalStateException
If the option wasn't found.
Returns the option as a string, if it has the option or null
.
Returns the option as a string, if it wasn't found, then it throws an IllegalStateException
If the option wasn't found.