Browse Source

feat: 调整cli

main-cli 9.0.3.5
Hanpaopao 1 year ago
parent
commit
dff82c87bc
  1. 4
      Readme.md
  2. 2
      aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/CreateCommand.cs

4
Readme.md

@ -41,14 +41,14 @@ lion.abp new -t pro -c 公司名称 -p 项目名称 -v 版本(默认LastRelease)
- nuget版本
```bash
lion.abp new -t pro.all -c 公司名称 -p 项目名称 -v 版本(默认LastRelease) -o 默认当前控制台执行目录
lion.abp new -t pro-nuget -c 公司名称 -p 项目名称 -v 版本(默认LastRelease) -o 默认当前控制台执行目录
```
- 模块
```bash
lion.abp new -t pro.module -c 公司名称 -p 项目名称 -v 版本(默认LastRelease) -o 默认当前控制台执行目录
lion.abp new -t pro-module -c 公司名称 -p 项目名称 -v 版本(默认LastRelease) -o 默认当前控制台执行目录
```

2
aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/CreateCommand.cs

@ -104,7 +104,7 @@ public class CreateCommand : IConsoleCommand, ITransientDependency
// 解压源码
var extractPath = _sourceCodeManager.ExtractProjectZip(localFilePath, _cliOptions.RepositoryId, version);
var contentPath = templateOptions.Name == "pro" ? Path.Combine(extractPath, _cliOptions.RepositoryId) : Path.Combine(extractPath, _cliOptions.RepositoryId, "templates", templateOptions.Name);
var contentPath = templateOptions.Name == "pro" ? extractPath : Path.Combine(extractPath, _cliOptions.RepositoryId, "templates", templateOptions.Name);
// 复制源码到输出目录
var destOutput = Path.Combine(CliPaths.Output, $"{companyName}-{projectName}-{version}");

Loading…
Cancel
Save