Loading
feat(project): add interactive prompts for repo create
Summary
Adds interactive prompts to glab repo create when running in a TTY without explicit flags.
Interactive Flow
$ glab repo create
? Project name: my-project
? Project description (optional):
? Visibility: PrivateBehavior
- Prompts shown when running interactively (TTY) without explicit flags
- Prompts skipped when:
- Running non-interactively (CI/pipes)
- Using
--yes/-yflag - Corresponding flag is already set (
--name,--description,--private/--public/--internal)
- Pre-filled values: Project name defaults to the current directory name
- Visibility default: Private (most common choice for new projects)
Changes
- Added
--yes/-yflag to skip interactive prompts - Added
huhform prompts for project name, description, and visibility - All existing non-interactive behavior preserved
Closes #570 (closed)
Changelog: added