Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<PackageVersion Include="OneOf.SourceGenerator" Version="3.0.271" />
<PackageVersion Include="PdfPig" Version="0.1.13" />
<PackageVersion Include="PlantUml.Net" Version="1.4.80" />
<PackageVersion Include="Spectre.Console" Version="0.54.0" />
<PackageVersion Include="Spectre.Console.Cli" Version="0.53.1" />
<PackageVersion Include="Spectre.Console" Version="0.57.2" />
<PackageVersion Include="Spectre.Console.Cli" Version="0.55.0" />
<PackageVersion Include="Stubble.Core" Version="1.10.8" />
<PackageVersion Include="System.Composition" Version="10.0.3" />
<PackageVersion Include="YamlDotNet" Version="16.3.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Spectre.Console" VersionOverride="0.54.0" />
<PackageReference Include="Spectre.Console" VersionOverride="0.57.2" />
<ProjectReference Include="..\Docfx.Common\Docfx.Common.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Spectre.Console" VersionOverride="0.54.0" />
<PackageReference Include="Spectre.Console" VersionOverride="0.57.2" />
<ProjectReference Include="..\Docfx.DataContracts.Common\Docfx.DataContracts.Common.csproj" />
<ProjectReference Include="..\Docfx.Common\Docfx.Common.csproj" />
<ProjectReference Include="..\Docfx.YamlSerialization\Docfx.YamlSerialization.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Spectre.Console" VersionOverride="0.54.0" />
<PackageReference Include="Spectre.Console" VersionOverride="0.57.2" />
<ProjectReference Include="..\Docfx.Common\Docfx.Common.csproj" />
<ProjectReference Include="..\Docfx.YamlSerialization\Docfx.YamlSerialization.csproj" />
<ProjectReference Include="..\Docfx.DataContracts.Common\Docfx.DataContracts.Common.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Glob/Docfx.Glob.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Spectre.Console" VersionOverride="0.54.0" />
<PackageReference Include="Spectre.Console" VersionOverride="0.57.2" />
<ProjectReference Include="..\Docfx.Common\Docfx.Common.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Docfx.MarkdigEngine/Docfx.MarkdigEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Spectre.Console" VersionOverride="0.54.0" />
<PackageReference Include="Spectre.Console" VersionOverride="0.57.2" />
<ProjectReference Include="..\Docfx.MarkdigEngine.Extensions\Docfx.MarkdigEngine.Extensions.csproj" />
<ProjectReference Include="..\Docfx.Common\Docfx.Common.csproj" />
<ProjectReference Include="..\Docfx.YamlSerialization\Docfx.YamlSerialization.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/Models/BuildCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Docfx;

internal class BuildCommand : AsyncCommand<BuildCommandOptions>
{
public override Task<int> ExecuteAsync(CommandContext context, BuildCommandOptions settings, CancellationToken cancellationToken)
protected override Task<int> ExecuteAsync(CommandContext context, BuildCommandOptions settings, CancellationToken cancellationToken)
{
return CommandHelper.RunAsync(settings, async () =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/Models/DefaultCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class Options : BuildCommandOptions
public bool Version { get; set; }
}

public override int Execute(CommandContext context, Options options, CancellationToken cancellationToken)
protected override int Execute(CommandContext context, Options options, CancellationToken cancellationToken)
{
if (options.Version)
{
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/Models/DownloadCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Docfx;

internal class DownloadCommand : Command<DownloadCommandOptions>
{
public override int Execute([NotNull] CommandContext context, [NotNull] DownloadCommandOptions options, CancellationToken cancellationToken)
protected override int Execute([NotNull] CommandContext context, [NotNull] DownloadCommandOptions options, CancellationToken cancellationToken)
{
return CommandHelper.Run(() =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/Models/InitCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Docfx;

class InitCommand : Command<InitCommandOptions>
{
public override int Execute([NotNull] CommandContext context, [NotNull] InitCommandOptions options, CancellationToken cancellationToken)
protected override int Execute([NotNull] CommandContext context, [NotNull] InitCommandOptions options, CancellationToken cancellationToken)
{
WriteLine(
"""
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/Models/MergeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Docfx;

internal class MergeCommand : Command<MergeCommandOptions>
{
public override int Execute([NotNull] CommandContext context, [NotNull] MergeCommandOptions options, CancellationToken cancellationToken)
protected override int Execute([NotNull] CommandContext context, [NotNull] MergeCommandOptions options, CancellationToken cancellationToken)
{
return CommandHelper.Run(options, () =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/Models/MetadataCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Docfx;

internal class MetadataCommand : AsyncCommand<MetadataCommandOptions>
{
public override Task<int> ExecuteAsync([NotNull] CommandContext context, [NotNull] MetadataCommandOptions options, CancellationToken cancellationToken)
protected override Task<int> ExecuteAsync([NotNull] CommandContext context, [NotNull] MetadataCommandOptions options, CancellationToken cancellationToken)
{
return CommandHelper.RunAsync(options, async () =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/Models/PdfCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Docfx;

internal class PdfCommand : AsyncCommand<PdfCommandOptions>
{
public override async Task<int> ExecuteAsync(CommandContext context, PdfCommandOptions options, CancellationToken cancellationToken)
protected override async Task<int> ExecuteAsync(CommandContext context, PdfCommandOptions options, CancellationToken cancellationToken)
{
return await CommandHelper.RunAsync(options, async () =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/Models/ServeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal class Settings : CommandSettings
public string OpenFile { get; set; }
}

public override int Execute([NotNull] CommandContext context, [NotNull] Settings options, CancellationToken cancellationToken)
protected override int Execute([NotNull] CommandContext context, [NotNull] Settings options, CancellationToken cancellationToken)
{
return CommandHelper.Run(() => RunServe.Exec(options.Folder, options.Host, options.Port, options.OpenBrowser, options.OpenFile));
}
Expand Down
4 changes: 2 additions & 2 deletions src/docfx/Models/TemplateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal class TemplateCommand
{
public class ListCommand : Command
{
public override int Execute(CommandContext context, CancellationToken cancellationToken)
protected override int Execute(CommandContext context, CancellationToken cancellationToken)
{
foreach (var path in Directory.GetDirectories(GetTemplateBaseDirectory()))
Console.WriteLine(Path.GetFileName(path));
Expand All @@ -38,7 +38,7 @@ internal class Options : CommandSettings
public string OutputFolder { get; set; }
}

public override int Execute(CommandContext context, Options options, CancellationToken cancellationToken)
protected override int Execute(CommandContext context, Options options, CancellationToken cancellationToken)
{
return CommandHelper.Run(() =>
{
Expand Down
Loading