Skip to content

init --guided with non-TTY stdin exits 0 mid-questionnaire without writing anything #375

Closed

Description

@stackbilt-admin

Found in the #373 review. This is pre-existing on main.

charter init --guided with piped, non-TTY stdin (for example echo y | charter init --guided, or a CI job) stops partway through the questions, writes nothing, and exits 0. A script can't tell that from a successful run.

Expected: guided mode should detect a non-interactive stdin up front. It should then either refuse with a clear message and a non-zero exit code, pointing to non-guided charter init or --yes, or read all of its answers from the pipe.

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