ServiceNameParser

class ServiceNameParser<C> : ArgumentParser<C, ServiceName> , BlockingSuggestionProvider.Strings<CommandSender>

サービスアカウント名をパースするコマンドパーサー Tab補完でDBから取得したサービスアカウント名一覧を表示する

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@API(status = API.Status.STABLE)
open fun <O : Any?> flatMap(mapper: MappedArgumentParser.Mapper<C?, ServiceName?, O?>?): ArgumentParser.FutureArgumentParser<C?, O?>?
Link copied to clipboard
@API(status = API.Status.STABLE)
open fun <O : Any?> flatMapSuccess(mapper: @NonNull BiFunction<CommandContext<C?>?, ServiceName?, CompletableFuture<ArgumentParseResult<O?>?>?>): ArgumentParser.FutureArgumentParser<C?, O?>?
Link copied to clipboard
@API(status = API.Status.STABLE)
open fun <O : Any?> mapSuccess(mapper: @NonNull BiFunction<CommandContext<C?>?, ServiceName?, CompletableFuture<O?>?>): ArgumentParser.FutureArgumentParser<C?, O?>?
Link copied to clipboard
open override fun parse(commandContext: CommandContext<C & Any>, commandInput: CommandInput): ArgumentParseResult<ServiceName>

入力文字列をServiceNameにパースする DBに存在するサービスアカウント名のみ許可

Link copied to clipboard
@API(status = API.Status.STABLE)
open fun parseFuture(commandContext: @NonNull CommandContext<C?>, commandInput: @NonNull CommandInput): @NonNull CompletableFuture<@NonNull ArgumentParseResult<ServiceName?>>
Link copied to clipboard
open override fun stringSuggestions(commandContext: CommandContext<CommandSender?>, input: CommandInput): Iterable<String>

Tab補完用のサジェストを提供 DBから全サービスアカウント名を取得して返す

Link copied to clipboard
open fun suggestionProvider(): @NonNull SuggestionProvider<C?>
Link copied to clipboard
open fun suggestions(context: @NonNull CommandContext<CommandSender?>, input: @NonNull CommandInput): @NonNull Iterable<@NonNull Suggestion>
Link copied to clipboard
open fun suggestionsFuture(context: @NonNull CommandContext<CommandSender?>, input: @NonNull CommandInput): @NonNull CompletableFuture<out @NonNull Iterable<out @NonNull Suggestion>>