Exemple #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;
 }
Exemple #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);
Exemple #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());
 }