mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-17 08:15:47 +08:00
Add Spectre.Cli to Spectre.Console
* Renames Spectre.Cli to Spectre.Console.Cli. * Now uses Verify with Spectre.Console.Cli tests. * Removes some duplicate definitions. Closes #168
This commit is contained in:
committed by
Patrik Svensson
parent
0bbf9b81a9
commit
0ae419326d
17
src/Spectre.Console/Cli/CommandSettings.cs
Normal file
17
src/Spectre.Console/Cli/CommandSettings.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Spectre.Console.Cli
|
||||
{
|
||||
/// <summary>
|
||||
/// Base class for command settings.
|
||||
/// </summary>
|
||||
public abstract class CommandSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Performs validation of the settings.
|
||||
/// </summary>
|
||||
/// <returns>The validation result.</returns>
|
||||
public virtual ValidationResult Validate()
|
||||
{
|
||||
return ValidationResult.Success();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user