Sandbar 1.0.2

This is a simple console based progress bar which allows for long running tasks to be tracked. The original codebase was created by DanielSWolf https://github.com/DanielSWolf and extended by Brad Lindsay. https://github.com/impr0t

Install-Package Sandbar -Version 1.0.2
dotnet add package Sandbar --version 1.0.2
<PackageReference Include="Sandbar" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sandbar --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage

API Highly likely to change.

        private static void Main(string[] args)
        {
            ProgressBarOptions opts = new ProgressBarOptions();
            opts.RunningColour = ConsoleColor.Yellow;
            opts.FinishedColour = ConsoleColor.Green;
            opts.Pattern = AnimationPattern.Spinner;
            opts.Interval = AnimationInterval.Short;

            using (var p = new ProgressBar("Doing Something", opts))
            {
                for (var i = 0; i < 100; i++)
                {
                    p.Report(i, 100);
                    Thread.Sleep(100);
                }
            }

            Console.ReadLine();
        }

Usage

API Highly likely to change.

        private static void Main(string[] args)
        {
            ProgressBarOptions opts = new ProgressBarOptions();
            opts.RunningColour = ConsoleColor.Yellow;
            opts.FinishedColour = ConsoleColor.Green;
            opts.Pattern = AnimationPattern.Spinner;
            opts.Interval = AnimationInterval.Short;

            using (var p = new ProgressBar("Doing Something", opts))
            {
                for (var i = 0; i < 100; i++)
                {
                    p.Report(i, 100);
                    Thread.Sleep(100);
                }
            }

            Console.ReadLine();
        }

Release Notes

This is the initial implementation of Sandbar. In large, some basic configuration settings were created on top of the original codebase. The project is built ontop of .NET Standard and "should" be cross platform compatible.

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 135 10/30/2018
1.0.1 114 10/29/2018