예제 #1
0
 /// <summary>
 /// Initializes and instance of <see cref="CommandCandidate"/>
 /// </summary>
 public CommandCandidate(CommandSchema schema, IReadOnlyList <string> positionalArgumentsInput, CommandInput commandInput)
 {
     Schema = schema;
     PositionalArgumentsInput = positionalArgumentsInput;
     CommandInput             = commandInput;
 }
예제 #2
0
 /// <summary>
 /// Gets whether this command is the default command, i.e. without a name.
 /// </summary>
 public static bool IsDefault(this CommandSchema commandSchema) => string.IsNullOrWhiteSpace(commandSchema.Name);
예제 #3
0
 /// <summary>
 /// Gets whether this command is the default command, i.e. without a name.
 /// </summary>
 public static bool IsDefault(this CommandSchema commandSchema)
 {
     commandSchema.GuardNotNull(nameof(commandSchema));
     return(commandSchema.Name.IsNullOrWhiteSpace());
 }