Patrik Svensson e280b82679 Fix dividing with infinity bug
When calculating the remaining time for a progress task,
we divide the value delta with the current speed.
If the speed is zero, then the resulting double will
be 'infinity' which will lead to TimeSpan.FromSeconds
throwing.

This commit fixes that bug by setting the speed to 1
if it's 0 when calculating the remaining time.

Closes #169
2020-12-17 00:43:47 +01:00
2020-12-14 10:36:05 +01:00
2020-12-09 00:07:02 +01:00
2020-12-09 00:07:02 +01:00
2020-12-09 00:07:02 +01:00
2020-12-17 00:43:47 +01:00
2020-07-21 12:03:41 +02:00
2020-11-20 16:22:23 +01:00
2020-08-27 19:31:44 +02:00
2020-07-21 12:03:41 +02:00
2020-11-11 15:28:32 +01:00
2020-11-11 15:28:32 +01:00
2020-07-21 12:03:41 +02:00
2020-11-03 18:14:41 +01:00
2020-11-25 10:07:34 +01:00
2020-11-30 05:56:25 +01:00

Spectre.Console

Spectre.Console NuGet Version

A .NET 5/.NET Standard 2.0 library that makes it easier to create beautiful, cross platform, console applications.
It is heavily inspired by the excellent Rich library for Python.

Table of Contents

  1. Features
  2. Installing
  3. Documentation
  4. Examples
  5. License

Features

  • Written with unit testing in mind.
  • Supports tables, grids, panels, and a rich inspired markup language.
  • Supports the most common SRG parameters when it comes to text styling such as bold, dim, italic, underline, strikethrough, and blinking text.
  • Supports 3/4/8/24-bit colors in the terminal.
    The library will detect the capabilities of the current terminal and downgrade colors as needed.

Example

Installing

The fastest way of getting started using Spectre.Console is to install the NuGet package.

dotnet add package Spectre.Console

Documentation

The documentation for Spectre.Console can be found at https://spectresystems.github.io/spectre.console/

Examples

To see Spectre.Console in action, install the dotnet-example global tool.

> dotnet tool restore

Now you can list available examples in this repository:

> dotnet example

And to run an example:

> dotnet example tables

License

Copyright © Spectre Systems.

Spectre.Console is provided as-is under the MIT license. For more information see LICENSE.

Description
A .NET library that makes it easier to create beautiful console applications.
Readme 11 MiB
Languages
C# 99.9%
PowerShell 0.1%