From 47c839c10322a3af999530bea1e2f68ffefd8523 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 13 Sep 2021 09:26:18 +0800 Subject: [PATCH] Use `Latest` if the version is not specified. --- .../Abp/Cli/Commands/Services/SourceCodeDownloadService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/SourceCodeDownloadService.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/SourceCodeDownloadService.cs index a228068b45..99ac9203e7 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/SourceCodeDownloadService.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/SourceCodeDownloadService.cs @@ -34,7 +34,7 @@ namespace Volo.Abp.Cli.Commands.Services public async Task DownloadModuleAsync(string moduleName, string outputFolder, string version, string gitHubAbpLocalRepositoryPath, string gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) { Logger.LogInformation("Downloading source code of " + moduleName); - Logger.LogInformation("Version: " + version); + Logger.LogInformation("Version: " + (version ?? "Latest")); Logger.LogInformation("Output folder: " + outputFolder); var result = await ModuleProjectBuilder.BuildAsync( @@ -100,7 +100,7 @@ namespace Volo.Abp.Cli.Commands.Services public async Task DownloadNugetPackageAsync(string packageName, string outputFolder, string version) { Logger.LogInformation("Downloading source code of " + packageName); - Logger.LogInformation("Version: " + version); + Logger.LogInformation("Version: " + (version ?? "Latest")); Logger.LogInformation("Output folder: " + outputFolder); var result = await NugetPackageProjectBuilder.BuildAsync( @@ -151,7 +151,7 @@ namespace Volo.Abp.Cli.Commands.Services public async Task DownloadNpmPackageAsync(string packageName, string outputFolder, string version) { Logger.LogInformation("Downloading source code of " + packageName); - Logger.LogInformation("Version: " + version); + Logger.LogInformation("Version: " + (version ?? "Latest")); Logger.LogInformation("Output folder: " + outputFolder); var result = await NpmPackageProjectBuilder.BuildAsync(