Skip to content

CLI: no non-interactive path through gt init / gt configure, and gt init exits 0 in CI having written nothing #1939

Description

@JoshKappler

gt init takes only --src and --config, and gt configure takes no options; both are prompt wizards (verified on 2.14.63 and 2.14.64). Two consequences:

  • There is no flag-driven setup for CI or agent-driven flows. The working headless path is hand-writing gt.config.json and setting GT_API_KEY / GT_PROJECT_ID, which the docs now cover (content#393), but a supported --yes style init would close the gap properly.
  • Worse, npx gt init with stdin closed exits 0 having created no files, so a CI script checking exit codes believes setup succeeded. A non-TTY detection with a clear error and nonzero exit would make the failure honest even if the flag never ships.

Related wart seen while testing: gt init prints "No package.json or Python project file found" in a directory containing a valid package.json from npm init -y (gt 2.14.63).

If wizard-only setup is deliberate, the non-TTY exit-code fix alone would still be worth it.

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