Package studio.mevera.imperat.annotations
package studio.mevera.imperat.annotations
-
Annotation InterfacesClassDescriptionMarks a command handling method to be executed asynchronously.Declares a command entry point on a type or method.Marks a type or parameter whose value is resolved from the execution context rather than parsed from the command input.Applies a per-invocation cooldown to a command method.Specifies a literal default value for a parameter when no explicit input is provided.Declares an external class that provides/supplies a default value for a parameter when the user omits an input.Marks a field to be injected with a dependency by the underlying framework.Attaches a human-readable description to a command, subcommand, or parameter.Declares a method as a handler for a specific
Throwabletype.Declares external subcommand classes that should be attached to the annotated command container.Declares one or more flag names for a parameter or type.Specifies a format string for parsing and displaying the annotated parameter.Annotation to forward or redirect the usages of a command/subcommand to another command/subcommand, therefore, the forwarded command/subcommand will be executed the same with same input-parameters as the inheriting one.Sets a default attachment mode for all subcommands under the annotated type or method when their own attachment mode isAttachmentMode.UNSET.Marks a parameter or type as greedy, consuming the remainder of the input instead of a single token (e.g., capturing full sentences).Assigns a logical name to a command element or parameter.Marks a parameter or type as optional.Declares a permission node required to access a command, subcommand, or parameter.Registers one or moreCommandPostProcessorimplementations to run after a command method executes.Registers one or moreCommandPreProcessorimplementations to run before a command method executes.Constrains a numeric parameter or type to a minimum/maximum value.Declares a subcommand on a type or method, with optional attachment mode and suggestion-permission behavior.Provides a fixed set of inline suggestions for a parameter during tab-completion.Binds a parameter's suggestions to a named provider registered in the system.Declares one or more switch names for a boolean-like parameter.Declares a command usage method and provides example invocations for help output.Restricts a parameter to a predefined set of allowed string values.