String Argument
class StringArgument<T>(name: String, type: StringArgument.Type, suggestion: SuggestionAction<T>?, action: ContextAction<T>?) : Argument<String, T>
Content copied to clipboard
String argument type. You can specify string type. If it is not the specified type, an error will be displayed on the client side and the attempt to execute will not be accepted. String Type: WORD ->hello
world
String Type: PHRASE_QUOTED ->hello
world
"This is quoted string"
String Type: PHRASE ->hello string
word
"Quoted string"
See also
Parameters
name
Name of argument.
type
Text type.
suggestion
Lambda expression for tab completion of its arguments.
Check the following for the specifications of other arguments.
Constructors
StringArgument
Link copied to clipboard
fun <T> StringArgument(name: String, type: StringArgument.Type = Type.WORD, suggestion: SuggestionAction<T>? = null, action: ContextAction<T>? = null)
Content copied to clipboard
Types
Type
Link copied to clipboard
The type of argument input.