Skip to content

What is the preferred flow of returning results from CommandHandler #583

Open
@mmierzwa11

Description

@mmierzwa11

Should I just call Console.WriteLine in CommandHandler or is it somehow possible to return object and somewhere at lower level catch all result and do generic Render operation. Also I have cloned repo, and tried to get RenderingPlayground project to work, but it doesn't work as expected, I tried running this sample in cmd and powershell and both can't render many samples correcty. But if I change consoleRenderer OutputMode explicitly to Ansi it seems to start working, could you please provide basic scenario of real world usage of System.CommandLine.Rendering and maybe result handling from CommandHandler?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions