Skip to content

Fix: Change Execute method to protected override in all Command classes#171

Merged
si618 merged 9 commits into
mainfrom
fix/command-access-modifiers
Jun 4, 2026
Merged

Fix: Change Execute method to protected override in all Command classes#171
si618 merged 9 commits into
mainfrom
fix/command-access-modifiers

Conversation

@si618

@si618 si618 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

The Spectre.Console.Cli 0.55.0 update changed the base Command.Execute method from public to protected. This updates all command implementations to use protected override instead of public override.

Fixes compilation errors in:

  • AppCommand.cs
  • BenchmarkCommand.cs
  • InfoCommand.cs
  • ListCommand.cs
  • WorkflowCommand.cs

si618 added 9 commits June 5, 2026 07:42
The Spectre.Console.Cli 0.55.0 update changed the base Command.Execute method from public to protected.
This updates all command implementations to use protected override instead of public override.

Fixes compilation errors in:
- AppCommand.cs
- BenchmarkCommand.cs
- InfoCommand.cs
- ListCommand.cs
- WorkflowCommand.cs
… as public override

- Bump Spectre.Console.Cli from 0.53.1 to 0.55.0 in Directory.Packages.props
- Keep Execute methods as public override (base class uses public, not protected)
- All command classes now compatible with Spectre.Console 0.55.2 and Spectre.Console.Cli 0.55.0
….Cli 0.55.0

With Spectre.Console.Cli 0.55.0, the base Command.Execute method is now protected, not public.
Updated all command classes to use protected override:
- AppCommand.cs
- BenchmarkCommand.cs
- InfoCommand.cs
- ListCommand.cs
- WorkflowCommand.cs
Fixed whitespace formatting issue that was causing dotnet format check to fail.
…ifiers

- Reverted all files to use CRLF line endings (\r\n) with UTF-8 BOM
- Changed Execute methods from public to protected override (required for Spectre.Console.Cli 0.55.0)
- Updated Spectre.Console.Cli version to 0.55.0
- Removed double semicolon from WorkflowCommand.cs line 66

This ensures minimal code diff focused only on the necessary changes.
- Changed to pure CRLF line endings without UTF-8 BOM
- Maintains the access modifier changes (protected override)
- Fixes the CS1003 and CS1002 syntax errors from the previous commit
…age versions

- Removed all BOM and CRLF line ending changes
- Using original LF line endings from main branch
- Changed Execute methods to protected override for Spectre.Console.Cli 0.55.0
- Updated Spectre.Console.Cli version from 0.53.1 to 0.55.0 in Directory.Packages.props
- Minimal diff focused only on necessary code changes
… modifiers

- Restored original CRLF line endings (\r\n) and UTF-8 BOM from main branch
- Only changed Execute methods from public to protected override
- Removed double semicolon from WorkflowCommand.cs line 66
- Minimal functional code changes while preserving original file encoding
- Changed Execute methods from public to protected override for Spectre.Console.Cli 0.55.0
- Preserved exact file encoding with UTF-8 BOM and CRLF line endings
- Minimal code changes focused only on access modifier update
@si618 si618 merged commit 0e8e918 into main Jun 4, 2026
2 checks passed
@si618 si618 deleted the fix/command-access-modifiers branch June 4, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant