//------------------------------------------------------------------------------ // // This code was generated by a tool. // Generated {{ date.now | date.to_string `%F %R` }} // // Partly generated from // https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.Collections.Generic; namespace Spectre.Console { public abstract partial class Spinner { {{~ for spinner in spinners ~}} private sealed class {{ spinner.normalized_name }}Spinner : Spinner { public override TimeSpan Interval => TimeSpan.FromMilliseconds({{ spinner.interval }}); public override bool IsUnicode => {{ spinner.unicode }}; public override IReadOnlyList Frames => new List { {{~ for frame in spinner.frames ~}} "{{ frame }}", {{~ end ~}} }; } {{~ end ~}} /// /// Contains all predefined spinners. /// public static class Known { {{~ for spinner in spinners ~}} /// /// Gets the "{{ spinner.name }}" spinner. /// public static Spinner {{ spinner.normalized_name }} { get; } = new {{ spinner.normalized_name }}Spinner(); {{~ end ~}} } } }