public override Task <Suggestions> ListSuggestions <TSource>(CommandContext <TSource> context, SuggestionsBuilder builder) { if ("true".StartsWith(builder.RemainingLowerCase)) { builder.Suggest("true"); } if ("false".StartsWith(builder.RemainingLowerCase)) { builder.Suggest("false"); } return(builder.BuildFuture()); }
public Func <Suggestions> ListSuggestions <TS>(CommandContext <TS> context, SuggestionsBuilder builder) { return(Suggestions.Empty()); }
public override Task <Suggestions> ListSuggestions(CommandContext <TSource> context, SuggestionsBuilder builder) { return(Suggestions.Empty()); }
public override Task <Suggestions> ListSuggestions(CommandContext <TSource> context, SuggestionsBuilder builder) { if (Literal.ToLower().StartsWith(builder.Remaining.ToLower())) { return(builder.Suggest(Literal).BuildFuture()); } else { return(Suggestions.Empty()); } }
public virtual Task <Suggestions> ListSuggestions <TSource>(CommandContext <TSource> context, SuggestionsBuilder builder) { return(Suggestions.Empty()); }
/// <exception cref="CommandSyntaxException"></exception> public abstract Task <Suggestions> ListSuggestions(CommandContext <TSource> context, SuggestionsBuilder builder);
public SuggestionsBuilderTest() { _builder = new SuggestionsBuilder("Hello w", 6); }