-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed Configuration from class to a real enum (#34)
- Loading branch information
Showing
10 changed files
with
18 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,18 @@ | ||
using JetBrains.Annotations; | ||
|
||
using Nuke.Common.Tooling; | ||
|
||
using System.ComponentModel; | ||
|
||
namespace Candoumbe.Pipelines.Components | ||
namespace Candoumbe.Pipelines.Components | ||
{ | ||
/// <summary> | ||
/// Configuration that can be used throughout CI/CD pipelines | ||
/// Configuration that can be used to compile an application | ||
/// </summary> | ||
[PublicAPI] | ||
[TypeConverter(typeof(TypeConverter<Configuration>))] | ||
public class Configuration : Enumeration | ||
public enum Configuration | ||
{ | ||
/// <summary> | ||
/// The "Debug" mode | ||
/// Debug mode | ||
/// </summary> | ||
public static Configuration Debug => new() { Value = nameof(Debug) }; | ||
Debug, | ||
|
||
/// <summary> | ||
/// The "release" mode | ||
/// Release mode | ||
/// </summary> | ||
public static Configuration Release => new() { Value = nameof(Release) }; | ||
|
||
///<inheritdoc/> | ||
public static implicit operator string(Configuration configuration) => configuration.Value; | ||
Release | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters