1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20[<AutoOpen>] module Duets.Cli.Components.Separator open Spectre.Console /// Renders a line into the screen with an optional text that, if given, shows /// in the center of the screen. let showSeparator text = let rule = Rule().Centered() rule.Style <- Style.Parse("blue dim") match text with | Some text -> rule.Title <- text | None -> () AnsiConsole.Write(rule) /// Renders an empty line in the screen. let lineBreak () = AnsiConsole.WriteLine()