mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-24 02:25:48 +08:00
Move Spectre.Console.Cli to it's own package
This commit is contained in:
committed by
Patrik Svensson
parent
b600832e00
commit
36ca22ffac
22
src/Spectre.Console.Cli/IFlagValue.cs
Normal file
22
src/Spectre.Console.Cli/IFlagValue.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace Spectre.Console.Cli;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a flag with an optional value.
|
||||
/// </summary>
|
||||
public interface IFlagValue
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether or not the flag was set or not.
|
||||
/// </summary>
|
||||
bool IsSet { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the flag's element type.
|
||||
/// </summary>
|
||||
Type Type { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the flag's value.
|
||||
/// </summary>
|
||||
object? Value { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user