diff --git a/src/AbpDevTools/Commands/UpdateCheckCommand.cs b/src/AbpDevTools/Commands/UpdateCheckCommand.cs index d6d761d..bdeebb2 100644 --- a/src/AbpDevTools/Commands/UpdateCheckCommand.cs +++ b/src/AbpDevTools/Commands/UpdateCheckCommand.cs @@ -39,7 +39,7 @@ public async ValueTask ExecuteAsync(IConsole console) } var result = await updateChecker.CheckAsync(force: Force); - + if (Force) { console.Output.WriteLine($"Current version: {result.CurrentVersion}"); @@ -50,12 +50,10 @@ public async ValueTask ExecuteAsync(IConsole console) await notificationManager.SendAsync( "AbpDevTools Update available!", $"Run '{command}' to update. A newer version {result.LatestVersion} available for AbpDevTools"); + AnsiConsole.Markup($"[yellow]A newer version {result.LatestVersion} available.[/]\n"); - if (!Silent) - { - AnsiConsole.Markup($"Run '[black on yellow]{command}[/]' to update."); - } + AnsiConsole.Markup($"Run '[black on yellow]{command}[/]' to update."); } else {