mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-07 13:08:14 +08:00
Changed IConfigurator to return IConfigurator instead of void for (#1762)
This commit is contained in:
@ -9,13 +9,15 @@ public interface IConfigurator
|
||||
/// Sets the help provider for the application.
|
||||
/// </summary>
|
||||
/// <param name="helpProvider">The help provider to use.</param>
|
||||
public void SetHelpProvider(IHelpProvider helpProvider);
|
||||
/// <returns>A configurator that can be used for further configuration.</returns>
|
||||
public IConfigurator SetHelpProvider(IHelpProvider helpProvider);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the help provider for the application.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of the help provider to instantiate at runtime and use.</typeparam>
|
||||
public void SetHelpProvider<T>()
|
||||
/// <returns>A configurator that can be used for further configuration.</returns>
|
||||
public IConfigurator SetHelpProvider<T>()
|
||||
where T : IHelpProvider;
|
||||
|
||||
/// <summary>
|
||||
@ -27,7 +29,8 @@ public interface IConfigurator
|
||||
/// Adds an example of how to use the application.
|
||||
/// </summary>
|
||||
/// <param name="args">The example arguments.</param>
|
||||
void AddExample(params string[] args);
|
||||
/// <returns>A configurator that can be used for further configuration.</returns>
|
||||
IConfigurator AddExample(params string[] args);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a command.
|
||||
|
Reference in New Issue
Block a user