fix: switching Is* and Has* classes into singletons
All checks were successful
deploy / deploy (push) Successful in 8m29s

This commit is contained in:
D. Moonfire 2024-03-10 23:33:43 -05:00
parent 8944ae37ab
commit da16d3f28e
4 changed files with 13 additions and 15 deletions

View file

@ -90,7 +90,7 @@ public partial class ExecOperation : AsyncOperationBase
CommandResult result = await command.ExecuteAsync(cancellationToken);
this.logger.Debug(
"Execute: {Command} {Arguments} = {ExitCode}",
"Execute non-buffered: {Command} {Arguments} = {ExitCode}",
command.TargetFilePath,
command.Arguments,
result.ExitCode

View file

@ -1,12 +1,10 @@
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Feeds;
/// <summary>
/// A marker component that indicates this entity has a feed associated with
/// it.
/// </summary>
public class HasFeed
{
public HasFeed() { }
public static HasFeed Instance { get; } = new();
}
[SingletonComponent]
public partial class HasFeed { }

View file

@ -1,10 +1,10 @@
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Handlebars;
/// <summary>
/// A marker component that indicates that a given file with text component
/// has a Handlebars template in it.
/// </summary>
public record HasHandlebarsTemplate
{
public static HasHandlebarsTemplate Instance { get; } = new();
}
[SingletonComponent]
public partial class HasHandlebarsTemplate { }

View file

@ -1,9 +1,9 @@
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Yaml;
/// <summary>
/// A marker class that indicates that entity has a YAML model.
/// </summary>
public record HasYamlModel
{
public static HasYamlModel Instance { get; } = new();
}
[SingletonComponent]
public partial class HasYamlModel { }