mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-30 09:48:03 +01:00
20 lines
493 B
C#
20 lines
493 B
C#
namespace Spectre.Console.Cli;
|
|
|
|
/// <summary>
|
|
/// Represents a command container.
|
|
/// </summary>
|
|
internal interface ICommandContainer
|
|
{
|
|
/// <summary>
|
|
/// Gets all commands in the container.
|
|
/// </summary>
|
|
IList<CommandInfo> Commands { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the default command for the container.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Returns null if a default command has not been set.
|
|
/// </remarks>
|
|
CommandInfo? DefaultCommand { get; }
|
|
} |