diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aca8512..0fe38df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,7 @@ jobs: fetch-depth: 0 - name: Build run: dotnet build --configuration Release + - name: Build Example + run: dotnet build --configuration Release ConsoleMarkdownRenderer.Example - name: Test run: dotnet test --configuration Release ConsoleMarkdownRenderer.Tests diff --git a/ConsoleMarkdownRenderer.Example/Program.cs b/ConsoleMarkdownRenderer.Example/Program.cs index cb0a59a..c244288 100644 --- a/ConsoleMarkdownRenderer.Example/Program.cs +++ b/ConsoleMarkdownRenderer.Example/Program.cs @@ -2,6 +2,7 @@ using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.IO; +using System.Threading; using System.Threading.Tasks; using Spectre.Console; using Spectre.Console.Cli; @@ -51,7 +52,7 @@ class ExampleSettings : CommandSettings class ExampleCommand : AsyncCommand { - public override async Task ExecuteAsync([NotNull] CommandContext context, [NotNull] ExampleSettings settings) + protected override async Task ExecuteAsync([NotNull] CommandContext context, [NotNull] ExampleSettings settings, CancellationToken cancellationToken) { var path = settings.Path ?? (settings.UseWeb