Alias for command branches (#411)

This commit is contained in:
Ilya Hryapko
2023-02-09 17:26:06 +03:00
committed by GitHub
parent f4183e0462
commit 04610cf492
9 changed files with 288 additions and 189 deletions

View File

@ -41,6 +41,7 @@ public interface IConfigurator
/// <typeparam name="TSettings">The command setting type.</typeparam>
/// <param name="name">The name of the command branch.</param>
/// <param name="action">The command branch configurator.</param>
void AddBranch<TSettings>(string name, Action<IConfigurator<TSettings>> action)
/// <returns>A branch configurator that can be used to configure the branch further.</returns>
IBranchConfigurator AddBranch<TSettings>(string name, Action<IConfigurator<TSettings>> action)
where TSettings : CommandSettings;
}