Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 public Func <Suggestions> ListSuggestions <TS>(CommandContext <TS> context, SuggestionsBuilder builder)
 {
     return(Suggestions.Empty());
 }
Exemplo n.º 3
0
 public override Task <Suggestions> ListSuggestions(CommandContext <TSource> context, SuggestionsBuilder builder)
 {
     return(Suggestions.Empty());
 }
Exemplo n.º 4
0
 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());
     }
 }
Exemplo n.º 5
0
 public virtual Task <Suggestions> ListSuggestions <TSource>(CommandContext <TSource> context, SuggestionsBuilder builder)
 {
     return(Suggestions.Empty());
 }
Exemplo n.º 6
0
 /// <exception cref="CommandSyntaxException"></exception>
 public abstract Task <Suggestions> ListSuggestions(CommandContext <TSource> context, SuggestionsBuilder builder);
Exemplo n.º 7
0
 public SuggestionsBuilderTest()
 {
     _builder = new SuggestionsBuilder("Hello w", 6);
 }