Skip to content

fix: allow --type flag to create new project without prompting to select provider - #51

Merged
Chhavi-Mandowara merged 1 commit into
developmentfrom
CL-1637
Apr 30, 2025
Merged

fix: allow --type flag to create new project without prompting to select provider#51
Chhavi-Mandowara merged 1 commit into
developmentfrom
CL-1637

Conversation

@Chhavi-Mandowara

Copy link
Copy Markdown
Contributor

No description provided.

@Chhavi-Mandowara
Chhavi-Mandowara requested review from a team and CopilotApril 30, 2025 12:24
@Chhavi-Mandowara
Chhavi-Mandowara requested a review from a team as a code ownerApril 30, 2025 12:24

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the project creation flow to allow non-interactive mode by using the --type flag to set the provider directly, thus bypassing the prompt.

  • Updated command examples in the CLI help text
  • Introduced a new setProviderType function to handle flag input
  • Adjusted tests to verify that the provider flag bypasses the interactive prompt

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

FileDescription
src/commands/launch/index.tsUpdated CLI usage examples and replaced prompt with flag-based logic
src/commands/launch/index.test.tsAdded a test case to check non-interactive provider selection
Files not reviewed (1)
  • .talismanrc: Language not supported

Comment threadsrc/commands/launch/index.ts
Comment threadsrc/commands/launch/index.test.ts
@Chhavi-Mandowara
Chhavi-Mandowara merged commit 662aa08 into developmentApr 30, 2025
@Chhavi-Mandowara
Chhavi-Mandowara deleted the CL-1637 branch April 30, 2025 12:29
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Chhavi-Mandowara@venky0195@naeem-shakh-cs@chhavi-mandowara-cstk