Ejemplo n.º 1
0
 public static Command List() => Create.Command(
     "list",
     LocalizableStrings.NetListCommand,
     Accept.ZeroOrOneArgument()
     .With(
         name: CommonLocalizableStrings.SolutionOrProjectArgumentName,
         description: CommonLocalizableStrings.SolutionOrProjectArgumentDescription)
     .DefaultToCurrentDirectory(),
     ListPackageReferencesCommandParser.ListPackageReferences(),
     ListProjectToProjectReferencesCommandParser.ListProjectToProjectReferences(),
     CommonOptions.HelpOption());
Ejemplo n.º 2
0
 public ListCommand()
     : base(
         name: "list",
         help: LocalizableStrings.NetListCommand,
         options: new Option[]
 {
     CommonOptions.HelpOption(),
     ListPackageReferencesCommandParser.ListPackageReferences(),
     ListProjectToProjectReferencesCommandParser.ListProjectToProjectReferences(),
 },
         arguments: Accept.ZeroOrOneArgument()
         .With(
             name: CommonLocalizableStrings.SolutionOrProjectArgumentName,
             description: CommonLocalizableStrings.SolutionOrProjectArgumentDescription)
         .DefaultToCurrentDirectory())
 {
 }