public static void RegisterListCommand(CommandLineApplication cmdApp, ReportsFactory reportsFactory) { cmdApp.Command("list", c => { c.Description = "Displays a list of package sources in effect for a project"; var argRoot = c.Argument("[root]", "The path of the project to calculate effective package sources for (defaults to the current directory)"); c.OnExecute(() => { var command = new ListFeedsCommand( reportsFactory.CreateReports(quiet: false), string.IsNullOrEmpty(argRoot.Value) ? "." : argRoot.Value); return(command.Execute()); }); }); }
public static void RegisterListCommand(CommandLineApplication cmdApp, ReportsFactory reportsFactory) { cmdApp.Command("list", c => { c.Description = "Displays a list of package sources in effect for a project"; var argRoot = c.Argument("[root]", "The path of the project to calculate effective package sources for (defaults to the current directory)"); c.OnExecute(() => { var command = new ListFeedsCommand( reportsFactory.CreateReports(quiet: false), string.IsNullOrEmpty(argRoot.Value) ? "." : argRoot.Value); return command.Execute(); }); }); }