Exemple #1
0
 public static void Register(CommandLineApplication cmdApp, ReportsFactory reportsFactory)
 {
     cmdApp.Command("clear-http-cache", c =>
     {
         c.Description = "Clears the package cache.";
         c.HelpOption("-?|-h|--help");
         c.OnExecute(() =>
         {
             var command = new ClearCacheCommand(
                 reportsFactory.CreateReports(quiet: false),
                 DnuEnvironment.GetFolderPath(DnuFolderPath.HttpCacheDirectory));
             return(command.Execute());
         });
     });
 }
 public static void Register(CommandLineApplication cmdApp, ReportsFactory reportsFactory)
 {
     cmdApp.Command("clear-http-cache", c =>
     {
         c.Description = "Clears the package cache.";
         c.HelpOption("-?|-h|--help");
         c.OnExecute(() =>
         {
             var command = new ClearCacheCommand(
                 reportsFactory.CreateReports(quiet: false),
                 DnuEnvironment.GetFolderPath(DnuFolderPath.HttpCacheDirectory));       
             return command.Execute();
         });
     });
 }