feat: 完成yi.tool.web爬虫
This commit is contained in:
@@ -13,7 +13,13 @@ namespace Yi.Abp.Tool.Commands
|
||||
public Task InvokerAsync(Dictionary<string, string> options, string[] args)
|
||||
{
|
||||
List<string> delDirBlacklist = ["obj", "bin"];
|
||||
DeleteObjBinFolders("./", delDirBlacklist);
|
||||
options.TryGetValue("path", out var path);
|
||||
|
||||
if (string.IsNullOrEmpty(path))
|
||||
{
|
||||
path = "./";
|
||||
}
|
||||
DeleteObjBinFolders(path, delDirBlacklist);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
@@ -24,7 +30,7 @@ namespace Yi.Abp.Tool.Commands
|
||||
{
|
||||
foreach (string subDir in Directory.GetDirectories(directory))
|
||||
{
|
||||
if (delDirBlacklist.Contains(subDir))
|
||||
if (delDirBlacklist.Contains(Path.GetFileName( subDir)))
|
||||
{
|
||||
Directory.Delete(subDir, true);
|
||||
Console.WriteLine($"已删除文件夹:{subDir}");
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace Yi.Abp.Tool.Commands
|
||||
> new: 创建模块模板` yi-abp new <name> -t module -csf `
|
||||
> new: 创建项目模板` yi-abp new <name> -csf `
|
||||
> add-module: 将内容添加到当前解决方案` yi-abp add-module <moduleName> [-modulePath <path>] [-s <slnPath>] `
|
||||
> clear: 清除当前目录及子目录下的obj、bin文件夹` yi-abp clear `
|
||||
|
||||
""");
|
||||
return Task.CompletedTask;
|
||||
|
||||
@@ -16,7 +16,8 @@ class Program
|
||||
//args = ["12312"];
|
||||
//args = ["new", "Acme.Book", "-t", "module", "-csf"];
|
||||
//args = ["new", "Acme.Book", "-t", "module"];
|
||||
args = ["add-module", "Acme.Demo", "-s", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8", "-modulePath", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8\\module\\acme-demo"];
|
||||
//args = ["add-module", "Acme.Demo", "-s", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8", "-modulePath", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8\\module\\acme-demo"];
|
||||
args = ["clear", "-path", "D:\\code\\csharp\\source\\Yi\\Yi.Abp.Net8\\src"];
|
||||
#endif
|
||||
try
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.8.0</Version>
|
||||
<Version>1.0.0</Version>
|
||||
<Authors>橙子老哥</Authors>
|
||||
<Description>yi-framework框架配套工具</Description>
|
||||
<PackageProjectUrl>https://ccnetcore.com</PackageProjectUrl>
|
||||
|
||||
Reference in New Issue
Block a user