public InstallationStatusCommand(IUserInterface userInterface, IInstallationStatusProvider installationStatusProvider)
{
if (userInterface == null)
{
throw new ArgumentNullException("userInterface");
}
if (installationStatusProvider == null)
{
throw new ArgumentNullException("installationStatusProvider");
}
this.userInterface = userInterface;
this.installationStatusProvider = installationStatusProvider;
this.Attributes = new CommandAttributes
{
CommandName = CommandName,
AlternativeCommandNames = this.alternativeCommandNames,
RequiredArguments = new string[] { },
PositionalArguments = new string[] { },
Description = Resources.InstallationStatusCommand.CommandDescriptionText,
Usage = string.Format("{0}", CommandName),
Examples = new Dictionary<string, string>
{
{
string.Format("{0}", CommandName),
Resources.InstallationStatusCommand.CommandExampleDescription1
},
{
string.Format("{0} <{1}>", CommandName, ArgumentNameNugetPackageId),
Resources.InstallationStatusCommand.CommandExampleDescription2
}
},
ArgumentDescriptions = new Dictionary<string, string>
{
{ ArgumentNameNugetPackageId, Resources.InstallationStatusCommand.ArgumentDescriptionNugetPackageId }
}
};
this.Arguments = new Dictionary<string, string>();
}