Add params to ProgressExtensions.Columns(...)

This way you can omit `new ProgressColumn[] { ... }` and just list the columns separated by comma.
This commit is contained in:
Alexey Golub 2021-03-23 22:34:17 +02:00 committed by Patrik Svensson
parent 9c46c21e27
commit 8830779875

View File

@ -14,7 +14,7 @@ namespace Spectre.Console
/// <param name="progress">The <see cref="Progress"/> instance.</param>
/// <param name="columns">The columns to use.</param>
/// <returns>The same instance so that multiple calls can be chained.</returns>
public static Progress Columns(this Progress progress, ProgressColumn[] columns)
public static Progress Columns(this Progress progress, params ProgressColumn[] columns)
{
if (progress is null)
{