using System.Collections.Generic;
using CliFx.Internal;
namespace CliFx.Models
{
///
/// Source information used to generate help text.
///
public class HelpTextSource
{
///
/// Application metadata.
///
public ApplicationMetadata ApplicationMetadata { get; }
///
/// Schemas of commands available in the application.
///
public IReadOnlyList AvailableCommandSchemas { get; }
///
/// Schema of the command for which help text is to be generated.
///
public CommandSchema TargetCommandSchema { get; }
///
/// Initializes an instance of .
///
public HelpTextSource(ApplicationMetadata applicationMetadata,
IReadOnlyList availableCommandSchemas,
CommandSchema targetCommandSchema)
{
ApplicationMetadata = applicationMetadata.GuardNotNull(nameof(applicationMetadata));
AvailableCommandSchemas = availableCommandSchemas.GuardNotNull(nameof(availableCommandSchemas));
TargetCommandSchema = targetCommandSchema.GuardNotNull(nameof(targetCommandSchema));
}
}
}