/// <summary> /// Initializes and instance of <see cref="CommandCandidate"/> /// </summary> public CommandCandidate(CommandSchema schema, IReadOnlyList <string> positionalArgumentsInput, CommandInput commandInput) { Schema = schema; PositionalArgumentsInput = positionalArgumentsInput; CommandInput = commandInput; }
/// <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);
/// <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()); }