Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the possibility to register multiple interceptors #1412

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

nils-a
Copy link
Contributor

@nils-a nils-a commented Dec 23, 2023

related to #1405
related to #1093

  • I have read the Contribution Guidelines
  • I have commented on the issue above and discussed the intended changes
  • A maintainer has signed off on the changes and the issue was assigned to me
  • All newly added code is adequately covered by tests
  • All existing tests are still running without errors
  • The documentation was modified to reflect the changes OR no documentation changes are required.

Changes

The registration of the interceptor is now handled in ITypeRegistrar this makes it possible to register multiple interceptors and also to use DI in interceptors.
Additionally, an InterceptResult-Method was introduced that runs after the command and can be used to alter the result value or to do some cleanup after the command.

@nils-a
Copy link
Contributor Author

nils-a commented Dec 23, 2023

@spectreconsole/maintainers what do you think?

Having the interceptors registered with the
ITypeRegistrar also enables the usage of ITypeResolver
in interceptors.
@rcdailey
Copy link

rcdailey commented Dec 24, 2023

@nils-a I took a look at the code changes. I even pulled down your branch on my machine, did a dotnet pack and dotnet nuget push to a local feed just to be able to use your changes in action.

My overall first impression is positive! The additions to ICommandInterceptor has allowed me to clean up a significant chunk of what I had in my Program.cs, especially regarding the "Hacks" I had to implement.

There's one small gap, however. When an exception occurs in a command class, I need to be able to handle that with access to DI. Unfortunately, the InterceptResult() doesn't seem like it would be called when there's an exception that leaks out of a command class. Instead, that gets handled in CommandApp.RunAsync() where either 1) it gets leaked out to my Program.cs (which is how I currently do it) or 2) gets passed to the provided exception handler, if provided.

Here's the problem I'm dealing with. I use Serilog in my application. I register a factory in DI that I use to create an ILogger instance which gets registered as a singleton. When I handle exceptions in my Program.cs, I do not have access to my underlying ILifetimeScope, so I'm forced to use something like AnsiConsole.WriteException(). But this would not deliver that exception information to other important sinks I've registered with Serilog (e.g. file logs).

When an exception occurs, I'd like to be able to use an instance of ILogger to write the exception information through Serilog, so that it gets delivered to multiple destinations (console included). With the provided exception handler mechanism, this isn't possible since I am not allowed an opportunity to resolve ILogger from my DI container.

One way I can think of to allow for this is to have something like ICommandExceptionHandler with semantics similar to the interceptors that gets resolved (by Spectre.Console) through DI, giving me an opportunity to resolve dependencies in a constructor that I can use to log exception information. An exception object would be passed to a method on this interface that I can implement, which is where my logging would be performed.

If we can reuse ICommandInterceptor for this, that'd be fine too, but given the different levels in the stack trace, I'm not sure if that type is usable at the CommandApp level. Design & solution I leave to you, but I can't completely get rid of my exception handling logic from Program.cs (nor my hack) until I'm able to do this.

If you need additional details or review, please don't hesitate to ask!

@rcdailey
Copy link

One small detail I might add:

If you decide to go with a registered type to handle exception processing, we still need the existing exception handler functionality as a fallback. There's a possibility that, due to DI dependencies and order of execution, that you would fail to resolve instances of ICommandExceptionHandler (or whatever you use).

In those cases, the behavior I'd expect is that you silently ignore those failures and treat them as if they are not registered to begin with. You'd proceed to call the configured exception handler (or propagate it, depending on how the user configured things).

This allows me to do AnsiConsole.WriteException() (actually, I'd probably just let spectre handle it) in the configured exception handler as a fallback, and use ILogger in my exception handler subclass.

So basically I think this means:

  1. If registered exception handler objects are available and process an exception, we don't go to the command handler fallback
  2. If no exception handlers are registered, OR they fail to be constructed, then we use the exception handler as a fallback.

You might even make #1 a user choice similar to how ASP.NET middleware works (user can say they "handled" the exception or not, which would control whether or not the fallback is used).

All this can probably get pretty complicated so again, I am happy to let you work out the details. I just wanted to brain dump some logistical concerns.

Thanks again for everything.

@nils-a
Copy link
Contributor Author

nils-a commented Dec 24, 2023

@rcdailey thank you for the feedback. Regarding exception handling with DI, you might want to have a look at #1411 which should address that.

@rcdailey
Copy link

Excellent!! With both of these changes, I am able to get rid of all of my hacks. I cherry picked your other PR into this one, did another local build, and tested out the changes on my end.

This is the Program.cs I started with (before your two changes):

internal static class Program
{
    private static ILifetimeScope? _scope;
    private static IBaseCommandSetupTask[] _tasks = Array.Empty<IBaseCommandSetupTask>();
    private static ILogger? _log;

    [SuppressMessage("Design", "CA1031:Do not catch general exception types")]
    public static int Main(string[] args)
    {
        var builder = new ContainerBuilder();
        CompositionRoot.Setup(builder);

        var logLevelSwitch = new LoggingLevelSwitch();
        var appDataPathProvider = new AppDataPathProvider();
        CompositionRoot.RegisterExternal(builder, logLevelSwitch, appDataPathProvider);

        var app = new CommandApp(new AutofacTypeRegistrar(builder, s => _scope = s));
        app.Configure(config =>
        {
        #if DEBUG
            config.PropagateExceptions();
            config.ValidateExamples();
        #endif

            config.Settings.PropagateExceptions = true;
            config.Settings.StrictParsing = true;

            config.SetApplicationName("recyclarr");
            config.SetApplicationVersion(
                $"v{GitVersionInformation.SemVer} ({GitVersionInformation.FullBuildMetaData})");

            var interceptor = new CliInterceptor(logLevelSwitch, appDataPathProvider);
            interceptor.OnIntercepted.Subscribe(_ => OnAppInitialized());
            config.SetInterceptor(interceptor);

            CliSetup.Commands(config);
        });

        var result = 1;
        try
        {
            result = app.Run(args);
        }
        catch (Exception ex)
        {
            if (_log is null)
            {
                AnsiConsole.WriteException(ex, ExceptionFormats.ShortenEverything);
            }
            else
            {
                _log.Error(ex, "Non-recoverable Exception");
            }
        }
        finally
        {
            OnAppCleanup();
        }

        return result;
    }

    private static void OnAppInitialized()
    {
        if (_scope is null)
        {
            throw new InvalidProgramException("Composition root is not initialized");
        }

        _log = _scope.Resolve<ILogger>();
        _log.Debug("Recyclarr Version: {Version}", GitVersionInformation.InformationalVersion);

        _tasks = _scope.Resolve<IOrderedEnumerable<IBaseCommandSetupTask>>().ToArray();
        _tasks.ForEach(x => x.OnStart());
    }

    private static void OnAppCleanup()
    {
        _tasks.Reverse().ForEach(x => x.OnFinish());
    }
}

And this is where we are after all the cleanup:

internal static class Program
{
    [SuppressMessage("Design", "CA1031:Do not catch general exception types")]
    public static int Main(string[] args)
    {
        var builder = new ContainerBuilder();
        CompositionRoot.Setup(builder);

        var app = new CommandApp(new AutofacTypeRegistrar(builder));
        app.Configure(config =>
        {
        #if DEBUG
            config.PropagateExceptions();
            config.ValidateExamples();
        #endif

            // config.Settings.PropagateExceptions = true;
            config.Settings.StrictParsing = true;

            config.SetApplicationName("recyclarr");
            config.SetApplicationVersion(
                $"v{GitVersionInformation.SemVer} ({GitVersionInformation.FullBuildMetaData})");

            config.SetExceptionHandler((ex, resolver) =>
            {
                var log = (ILogger?) resolver?.Resolve(typeof(ILogger));
                if (log is null)
                {
                    AnsiConsole.WriteException(ex, ExceptionFormats.ShortenEverything);
                }
                else
                {
                    log.Error(ex, "Non-recoverable Exception");
                }
            });

            CliSetup.Commands(config);
        });

        return app.Run(args);
    }
}

I was able to clean up quite a bit. Also notice I no longer needed the hack in my custom type registrar to access the ILifetimeScope. Another nice touch is the SetExceptionHandler(), which I can use now, to grab the ILogger. It would be nice if there was a version of Resolve() that was more statically typed with generics, but not a huge deal.

The other stuff cleaned up nicely as separate interceptor classes:

public class VersionLogInterceptor(ILogger log) : ICommandInterceptor
{
    public void Intercept(CommandContext context, CommandSettings settings)
    {
        log.Debug("Recyclarr Version: {Version}", GitVersionInformation.InformationalVersion);
    }
}

public class GlobalTaskInterceptor(IOrderedEnumerable<IGlobalSetupTask> tasks) : ICommandInterceptor
{
    public void Intercept(CommandContext context, CommandSettings settings)
    {
        tasks.ForEach(x => x.OnStart());
    }

    public void InterceptResult(CommandContext context, CommandSettings settings, ref int result)
    {
        tasks.Reverse().ForEach(x => x.OnFinish());
    }
}

Overall I am pleased with these improvements. Thank you very much for listening to my feedback!

@nils-a nils-a marked this pull request as ready for review January 4, 2024 16:02
@FrankRay78 FrankRay78 self-requested a review January 6, 2024 19:14
@FrankRay78 FrankRay78 self-assigned this Jan 6, 2024
@FrankRay78 FrankRay78 merged commit a94bc15 into spectreconsole:main Jan 6, 2024
6 checks passed
renovate bot added a commit to buehler/dotnet-operator-sdk that referenced this pull request Apr 23, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[Spectre.Console.Testing](https://github.com/spectreconsole/spectre.console)
| `0.48.0` -> `0.49.0` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/Spectre.Console.Testing/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Spectre.Console.Testing/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Spectre.Console.Testing/0.48.0/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Spectre.Console.Testing/0.48.0/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spectreconsole/spectre.console
(Spectre.Console.Testing)</summary>

###
[`v0.49.0`](https://github.com/spectreconsole/spectre.console/releases/tag/0.49.0)

[Compare
Source](https://github.com/spectreconsole/spectre.console/compare/0.48.0...0.49.0)

##### What's Changed

- Cleanup Line-Endings by [@&#8203;nils-a](https://github.com/nils-a)
in
[spectreconsole/spectre.console#1381
- Added spectre.console.cli to quick-start. by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1413
- Fix rendering of ListPrompt for odd pageSizes by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1365
- Remove mandelbrot example due to conflicting license by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1426
- Allow specifying a property to ignore the use of build-time packages
for versioning and analysis by
[@&#8203;baronfel](https://github.com/baronfel) in
[spectreconsole/spectre.console#1425
- Add the possibility to register multiple interceptors by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1412
- Added the ITypeResolver to the ExceptionHandler by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1411
- Updated typo in commandApp.md by
[@&#8203;DarqueWarrior](https://github.com/DarqueWarrior) in
[spectreconsole/spectre.console#1431
- Command with -v displays app version instead of executing the command
by [@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1427
- HelpProvider colors should be configurable by
[@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1408
- Direct contributors to the current CONTRIBUTING.md by
[@&#8203;tonycknight](https://github.com/tonycknight) in
[spectreconsole/spectre.console#1435
- Fix deadlock when cancelling prompts by
[@&#8203;caesay](https://github.com/caesay) in
[spectreconsole/spectre.console#1439
- Add progress bar value formatter by
[@&#8203;jsheely](https://github.com/jsheely) in
[spectreconsole/spectre.console#1414
- Update dependencies and do some clean-up by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1440
- Delete \[UsesVerify], which has become obsolete through the latest
update. by [@&#8203;danielcweber](https://github.com/danielcweber) in
[spectreconsole/spectre.console#1456
- Don't erase secret prompt text upon backspace when mask is null by
[@&#8203;danielcweber](https://github.com/danielcweber) in
[spectreconsole/spectre.console#1458
- Update dependencies to the latest version by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1459
- Automatically register command settings by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1463
- chore: Update dependency dotnet-example to v3.1.0 by
[@&#8203;renovate](https://github.com/renovate) in
[spectreconsole/spectre.console#1470
- chore: Update dependency Roslynator.Analyzers to v4.11.0 by
[@&#8203;renovate](https://github.com/renovate) in
[spectreconsole/spectre.console#1473
- Remove \[DebuggerDisplay] from Paragraph by
[@&#8203;martincostello](https://github.com/martincostello) in
[spectreconsole/spectre.console#1477
- Selection Prompt Search by
[@&#8203;slang25](https://github.com/slang25) in
[spectreconsole/spectre.console#1289
- Update dependency SixLabors.ImageSharp to v3.1.3 by
[@&#8203;renovate](https://github.com/renovate) in
[spectreconsole/spectre.console#1486
- Positioned Progress Tasks - Before or After Other Tasks by
[@&#8203;thomhurst](https://github.com/thomhurst) in
[spectreconsole/spectre.console#1250
- Added NoStackTrace to ExceptionFormats by
[@&#8203;gerardog](https://github.com/gerardog) in
[spectreconsole/spectre.console#1489
- Pipe character for listing options (issue 1434) by
[@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1498
- Improve XmlDoc output by
[@&#8203;yenneferofvengerberg](https://github.com/yenneferofvengerberg)
in
[spectreconsole/spectre.console#1503
- Revert
[`71a5d83`](https://github.com/spectreconsole/spectre.console/commit/71a5d830)
to undo flickering regression by
[@&#8203;phil-scott-78](https://github.com/phil-scott-78) in
[spectreconsole/spectre.console#1504
- AddDelegate uses an abstract type when used in a branch by
[@&#8203;BlazeFace](https://github.com/BlazeFace) in
[spectreconsole/spectre.console#1509
- Missing Separator When Headers are Hidden by
[@&#8203;BlazeFace](https://github.com/BlazeFace) in
[spectreconsole/spectre.console#1513
- Expose raw arguments on the command context by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1523
- Add token representation to remaining arguments by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1525

##### New Contributors

- [@&#8203;baronfel](https://github.com/baronfel) made their first
contribution in
[spectreconsole/spectre.console#1425
- [@&#8203;DarqueWarrior](https://github.com/DarqueWarrior) made their
first contribution in
[spectreconsole/spectre.console#1431
- [@&#8203;tonycknight](https://github.com/tonycknight) made their
first contribution in
[spectreconsole/spectre.console#1435
- [@&#8203;caesay](https://github.com/caesay) made their first
contribution in
[spectreconsole/spectre.console#1439
- [@&#8203;jsheely](https://github.com/jsheely) made their first
contribution in
[spectreconsole/spectre.console#1414
- [@&#8203;danielcweber](https://github.com/danielcweber) made their
first contribution in
[spectreconsole/spectre.console#1456
- [@&#8203;martincostello](https://github.com/martincostello) made
their first contribution in
[spectreconsole/spectre.console#1477
- [@&#8203;slang25](https://github.com/slang25) made their first
contribution in
[spectreconsole/spectre.console#1289
- [@&#8203;thomhurst](https://github.com/thomhurst) made their first
contribution in
[spectreconsole/spectre.console#1250
- [@&#8203;gerardog](https://github.com/gerardog) made their first
contribution in
[spectreconsole/spectre.console#1489
-
[@&#8203;yenneferofvengerberg](https://github.com/yenneferofvengerberg)
made their first contribution in
[spectreconsole/spectre.console#1503
- [@&#8203;BlazeFace](https://github.com/BlazeFace) made their first
contribution in
[spectreconsole/spectre.console#1509

**Full Changelog**:
spectreconsole/spectre.console@0.48.0...0.49.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9pm,before 6am" in timezone
Europe/Zurich, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/buehler/dotnet-operator-sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
ian-buse pushed a commit to dh2i-devs/dotnet-operator-sdk that referenced this pull request May 3, 2024
…ehler#751)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[Spectre.Console.Testing](https://github.com/spectreconsole/spectre.console)
| `0.48.0` -> `0.49.0` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/Spectre.Console.Testing/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Spectre.Console.Testing/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Spectre.Console.Testing/0.48.0/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Spectre.Console.Testing/0.48.0/0.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spectreconsole/spectre.console
(Spectre.Console.Testing)</summary>

###
[`v0.49.0`](https://github.com/spectreconsole/spectre.console/releases/tag/0.49.0)

[Compare
Source](https://github.com/spectreconsole/spectre.console/compare/0.48.0...0.49.0)

##### What's Changed

- Cleanup Line-Endings by [@&#8203;nils-a](https://github.com/nils-a)
in
[spectreconsole/spectre.console#1381
- Added spectre.console.cli to quick-start. by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1413
- Fix rendering of ListPrompt for odd pageSizes by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1365
- Remove mandelbrot example due to conflicting license by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1426
- Allow specifying a property to ignore the use of build-time packages
for versioning and analysis by
[@&#8203;baronfel](https://github.com/baronfel) in
[spectreconsole/spectre.console#1425
- Add the possibility to register multiple interceptors by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1412
- Added the ITypeResolver to the ExceptionHandler by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1411
- Updated typo in commandApp.md by
[@&#8203;DarqueWarrior](https://github.com/DarqueWarrior) in
[spectreconsole/spectre.console#1431
- Command with -v displays app version instead of executing the command
by [@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1427
- HelpProvider colors should be configurable by
[@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1408
- Direct contributors to the current CONTRIBUTING.md by
[@&#8203;tonycknight](https://github.com/tonycknight) in
[spectreconsole/spectre.console#1435
- Fix deadlock when cancelling prompts by
[@&#8203;caesay](https://github.com/caesay) in
[spectreconsole/spectre.console#1439
- Add progress bar value formatter by
[@&#8203;jsheely](https://github.com/jsheely) in
[spectreconsole/spectre.console#1414
- Update dependencies and do some clean-up by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1440
- Delete \[UsesVerify], which has become obsolete through the latest
update. by [@&#8203;danielcweber](https://github.com/danielcweber) in
[spectreconsole/spectre.console#1456
- Don't erase secret prompt text upon backspace when mask is null by
[@&#8203;danielcweber](https://github.com/danielcweber) in
[spectreconsole/spectre.console#1458
- Update dependencies to the latest version by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1459
- Automatically register command settings by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1463
- chore: Update dependency dotnet-example to v3.1.0 by
[@&#8203;renovate](https://github.com/renovate) in
[spectreconsole/spectre.console#1470
- chore: Update dependency Roslynator.Analyzers to v4.11.0 by
[@&#8203;renovate](https://github.com/renovate) in
[spectreconsole/spectre.console#1473
- Remove \[DebuggerDisplay] from Paragraph by
[@&#8203;martincostello](https://github.com/martincostello) in
[spectreconsole/spectre.console#1477
- Selection Prompt Search by
[@&#8203;slang25](https://github.com/slang25) in
[spectreconsole/spectre.console#1289
- Update dependency SixLabors.ImageSharp to v3.1.3 by
[@&#8203;renovate](https://github.com/renovate) in
[spectreconsole/spectre.console#1486
- Positioned Progress Tasks - Before or After Other Tasks by
[@&#8203;thomhurst](https://github.com/thomhurst) in
[spectreconsole/spectre.console#1250
- Added NoStackTrace to ExceptionFormats by
[@&#8203;gerardog](https://github.com/gerardog) in
[spectreconsole/spectre.console#1489
- Pipe character for listing options (issue 1434) by
[@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1498
- Improve XmlDoc output by
[@&#8203;yenneferofvengerberg](https://github.com/yenneferofvengerberg)
in
[spectreconsole/spectre.console#1503
- Revert
[`71a5d83`](https://github.com/spectreconsole/spectre.console/commit/71a5d830)
to undo flickering regression by
[@&#8203;phil-scott-78](https://github.com/phil-scott-78) in
[spectreconsole/spectre.console#1504
- AddDelegate uses an abstract type when used in a branch by
[@&#8203;BlazeFace](https://github.com/BlazeFace) in
[spectreconsole/spectre.console#1509
- Missing Separator When Headers are Hidden by
[@&#8203;BlazeFace](https://github.com/BlazeFace) in
[spectreconsole/spectre.console#1513
- Expose raw arguments on the command context by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1523
- Add token representation to remaining arguments by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1525

##### New Contributors

- [@&#8203;baronfel](https://github.com/baronfel) made their first
contribution in
[spectreconsole/spectre.console#1425
- [@&#8203;DarqueWarrior](https://github.com/DarqueWarrior) made their
first contribution in
[spectreconsole/spectre.console#1431
- [@&#8203;tonycknight](https://github.com/tonycknight) made their
first contribution in
[spectreconsole/spectre.console#1435
- [@&#8203;caesay](https://github.com/caesay) made their first
contribution in
[spectreconsole/spectre.console#1439
- [@&#8203;jsheely](https://github.com/jsheely) made their first
contribution in
[spectreconsole/spectre.console#1414
- [@&#8203;danielcweber](https://github.com/danielcweber) made their
first contribution in
[spectreconsole/spectre.console#1456
- [@&#8203;martincostello](https://github.com/martincostello) made
their first contribution in
[spectreconsole/spectre.console#1477
- [@&#8203;slang25](https://github.com/slang25) made their first
contribution in
[spectreconsole/spectre.console#1289
- [@&#8203;thomhurst](https://github.com/thomhurst) made their first
contribution in
[spectreconsole/spectre.console#1250
- [@&#8203;gerardog](https://github.com/gerardog) made their first
contribution in
[spectreconsole/spectre.console#1489
-
[@&#8203;yenneferofvengerberg](https://github.com/yenneferofvengerberg)
made their first contribution in
[spectreconsole/spectre.console#1503
- [@&#8203;BlazeFace](https://github.com/BlazeFace) made their first
contribution in
[spectreconsole/spectre.console#1509

**Full Changelog**:
spectreconsole/spectre.console@0.48.0...0.49.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9pm,before 6am" in timezone
Europe/Zurich, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/buehler/dotnet-operator-sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
vgmello pushed a commit to ellosoft/aws-cred-mgr that referenced this pull request May 31, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[Spectre.Console.Analyzer](https://github.com/spectreconsole/spectre.console)
| `0.48.0` -> `0.49.1` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/Spectre.Console.Analyzer/0.49.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Spectre.Console.Analyzer/0.49.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Spectre.Console.Analyzer/0.48.0/0.49.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Spectre.Console.Analyzer/0.48.0/0.49.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[Spectre.Console.Cli](https://github.com/spectreconsole/spectre.console)
| `0.48.0` -> `0.49.1` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/Spectre.Console.Cli/0.49.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Spectre.Console.Cli/0.49.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Spectre.Console.Cli/0.48.0/0.49.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Spectre.Console.Cli/0.48.0/0.49.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>spectreconsole/spectre.console
(Spectre.Console.Analyzer)</summary>

###
[`v0.49.1`](https://github.com/spectreconsole/spectre.console/compare/0.49.0...0.49.1)

[Compare
Source](https://github.com/spectreconsole/spectre.console/compare/0.49.0...0.49.1)

###
[`v0.49.0`](https://github.com/spectreconsole/spectre.console/releases/tag/0.49.0)

[Compare
Source](https://github.com/spectreconsole/spectre.console/compare/0.48.0...0.49.0)

#### What's Changed

- Cleanup line endings by [@&#8203;nils-a](https://github.com/nils-a)
in
[spectreconsole/spectre.console#1381
- Added Spectre.Console.Cli to quick-start. by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1413
- Fix rendering of ListPrompt for odd pageSizes by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1365
- Remove mandelbrot example due to conflicting license by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1426
- Allow specifying a property to ignore the use of build-time packages
for versioning and analysis by
[@&#8203;baronfel](https://github.com/baronfel) in
[spectreconsole/spectre.console#1425
- Add the possibility to register multiple interceptors by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1412
- Added the ITypeResolver to the ExceptionHandler by
[@&#8203;nils-a](https://github.com/nils-a) in
[spectreconsole/spectre.console#1411
- Updated typo in CommandApp.md by
[@&#8203;DarqueWarrior](https://github.com/DarqueWarrior) in
[spectreconsole/spectre.console#1431
- Command with -v displays app version instead of executing the command
by [@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1427
- HelpProvider colors should be configurable by
[@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1408
- Direct contributors to the current CONTRIBUTING.md by
[@&#8203;tonycknight](https://github.com/tonycknight) in
[spectreconsole/spectre.console#1435
- Fix deadlock when cancelling prompts by
[@&#8203;caesay](https://github.com/caesay) in
[spectreconsole/spectre.console#1439
- Add progress bar value formatter by
[@&#8203;jsheely](https://github.com/jsheely) in
[spectreconsole/spectre.console#1414
- Update dependencies and do some clean-up by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1440
- Delete \[UsesVerify], which has become obsolete through the latest
update. by [@&#8203;danielcweber](https://github.com/danielcweber) in
[spectreconsole/spectre.console#1456
- Don't erase secret prompt text upon backspace when mask is null by
[@&#8203;danielcweber](https://github.com/danielcweber) in
[spectreconsole/spectre.console#1458
- Update dependencies to the latest version by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1459
- Automatically register command settings by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1463
- Remove \[DebuggerDisplay] from Paragraph by
[@&#8203;martincostello](https://github.com/martincostello) in
[spectreconsole/spectre.console#1477
- Selection Prompt Search by
[@&#8203;slang25](https://github.com/slang25) in
[spectreconsole/spectre.console#1289
- Update dependency SixLabors.ImageSharp to v3.1.3 by
[@&#8203;renovate](https://github.com/renovate) in
[spectreconsole/spectre.console#1486
- Positioned Progress Tasks - Before or After Other Tasks by
[@&#8203;thomhurst](https://github.com/thomhurst) in
[spectreconsole/spectre.console#1250
- Added NoStackTrace to ExceptionFormats by
[@&#8203;gerardog](https://github.com/gerardog) in
[spectreconsole/spectre.console#1489
- Pipe character for listing options (issue 1434) by
[@&#8203;FrankRay78](https://github.com/FrankRay78) in
[spectreconsole/spectre.console#1498
- Improve XmlDoc output by
[@&#8203;yenneferofvengerberg](https://github.com/yenneferofvengerberg)
in
[spectreconsole/spectre.console#1503
- Revert
[`71a5d83`](https://github.com/spectreconsole/spectre.console/commit/71a5d830)
to undo flickering regression by
[@&#8203;phil-scott-78](https://github.com/phil-scott-78) in
[spectreconsole/spectre.console#1504
- AddDelegate uses an abstract type when used in a branch by
[@&#8203;BlazeFace](https://github.com/BlazeFace) in
[spectreconsole/spectre.console#1509
- Missing Separator When Headers are Hidden by
[@&#8203;BlazeFace](https://github.com/BlazeFace) in
[spectreconsole/spectre.console#1513
- Expose raw arguments on the command context by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1523
- Add token representation to remaining arguments by
[@&#8203;patriksvensson](https://github.com/patriksvensson) in
[spectreconsole/spectre.console#1525

#### New Contributors

- [@&#8203;baronfel](https://github.com/baronfel) made their first
contribution in
[spectreconsole/spectre.console#1425
- [@&#8203;DarqueWarrior](https://github.com/DarqueWarrior) made their
first contribution in
[spectreconsole/spectre.console#1431
- [@&#8203;tonycknight](https://github.com/tonycknight) made their
first contribution in
[spectreconsole/spectre.console#1435
- [@&#8203;caesay](https://github.com/caesay) made their first
contribution in
[spectreconsole/spectre.console#1439
- [@&#8203;jsheely](https://github.com/jsheely) made their first
contribution in
[spectreconsole/spectre.console#1414
- [@&#8203;danielcweber](https://github.com/danielcweber) made their
first contribution in
[spectreconsole/spectre.console#1456
- [@&#8203;martincostello](https://github.com/martincostello) made
their first contribution in
[spectreconsole/spectre.console#1477
- [@&#8203;slang25](https://github.com/slang25) made their first
contribution in
[spectreconsole/spectre.console#1289
- [@&#8203;thomhurst](https://github.com/thomhurst) made their first
contribution in
[spectreconsole/spectre.console#1250
- [@&#8203;gerardog](https://github.com/gerardog) made their first
contribution in
[spectreconsole/spectre.console#1489
-
[@&#8203;yenneferofvengerberg](https://github.com/yenneferofvengerberg)
made their first contribution in
[spectreconsole/spectre.console#1503
- [@&#8203;BlazeFace](https://github.com/BlazeFace) made their first
contribution in
[spectreconsole/spectre.console#1509

**Full Changelog**:
spectreconsole/spectre.console@0.48.0...0.49.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ellosoft/aws-cred-mgr).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

3 participants