Example #1
0
    public ValueTask ExecuteAsync(IConsole console)
    {
        var library = _libraryProvider.GetLibrary();

        for (var i = 0; i < library.Books.Count; i++)
        {
            // Add margin
            if (i != 0)
            {
                console.Output.WriteLine();
            }

            // Render book
            var book = library.Books[i];
            console.Output.WriteBook(book);
        }

        return(default);