mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General code cleanup and style refactor.
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
using System;
|
||||
using Spectre.Console;
|
||||
|
||||
namespace Aaru.Core;
|
||||
|
||||
using System;
|
||||
using global::Spectre.Console;
|
||||
|
||||
/// <summary>
|
||||
/// Implement core operations using the Spectre console
|
||||
/// </summary>
|
||||
/// <summary>Implement core operations using the Spectre console</summary>
|
||||
public static class Spectre
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a progress bar with a single spinner
|
||||
/// </summary>
|
||||
/// <summary>Initializes a progress bar with a single spinner</summary>
|
||||
/// <param name="action">Action to execute in the progress bar</param>
|
||||
public static void ProgressSingleSpinner(Action<ProgressContext> action) => AnsiConsole.Progress().AutoClear(true).
|
||||
HideCompleted(true).Columns(new TaskDescriptionColumn(), new SpinnerColumn()).Start(action);
|
||||
|
||||
Reference in New Issue
Block a user