Skip to content

Be able to specify output for forms #187

@connorszczepaniak-wk

Description

@connorszczepaniak-wk

Running a form always outputs the UI to stdout:
https://github.com/charmbracelet/huh/blob/main/form.go#L560

This is problematic if a program ultimately produces some output to stdout that the user wants to redirect into a file or pipe into another program.

It would be awesome if there was a way exposed to change this to Stderr, or maybe it should just default to stderr like the spinner does:
https://github.com/charmbracelet/huh/blob/main/spinner/spinner.go#L144

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions