You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(projects): ask create's project type as "Choose a project type to proceed"
The project-type picker in launch:projects:create now reads "Choose a
project type to proceed" with the choices "Continue with GitHub" and
"Continue with FileUpload", in place of "Project type" / "GitHub" /
"FileUpload". Only the labels change: each choice still answers the
bare GitHub or FileUpload, so --type and the rest of create are
unchanged. The question is held in PROJECT_TYPE_QUESTION.
Also raise the stdin listener limit to 50 (STDIN_MAX_LISTENERS) in
LaunchCommand.init(). The inquirer bundled with cli-utilities adds a
keypress listener to stdin per prompt, so a run of more than ten
prompts - projects:create reaches that - printed a
MaxListenersExceededWarning. The stdin guard test allows exactly that
line.
Talisman flags secret-free lines in project.inputs.test.ts - lines
containing "key" or "pass". .talismanrc allows exactly those lines,
narrowed per file like the existing entries.
#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: test/integration/projects-create.test.ts
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -467,7 +467,7 @@ describe('integration: launch:projects:create on the wire', () => {
467
467
468
468
it('asks on a terminal in the pinned order: type, organization, project name, environment name, then the build and Contentstack Authentication',async()=>{
469
469
constprompts=answerPrompts({
470
-
'Project type': 'FileUpload',
470
+
'Choose a project type to proceed': 'FileUpload',
471
471
'Choose an organization': ORG_UID,
472
472
'Project name': 'My Site',
473
473
'Environment name': 'Default',
@@ -503,7 +503,7 @@ describe('integration: launch:projects:create on the wire', () => {
503
503
expect(organizations.isDone()).toBe(true);
504
504
expect(create.isDone()).toBe(true);
505
505
expect(prompts.messages).toEqual([
506
-
'Project type',
506
+
'Choose a project type to proceed',
507
507
'Choose an organization',
508
508
'Project name',
509
509
'Environment name',
@@ -518,7 +518,7 @@ describe('integration: launch:projects:create on the wire', () => {
518
518
519
519
it('exits 3 as cancelled, not 130, and creates nothing when Ctrl-C is pressed at the last create prompt',async()=>{
520
520
constprompts=answerPrompts({
521
-
'Project type': 'FileUpload',
521
+
'Choose a project type to proceed': 'FileUpload',
522
522
'Choose an organization': ORG_UID,
523
523
'Project name': 'My Site',
524
524
'Environment name': 'Default',
@@ -556,7 +556,7 @@ describe('integration: launch:projects:create on the wire', () => {
556
556
it('asks all ten GitHub prompts in the pinned order and submits exactly what was answered',async()=>{
557
557
letbody: unknown;
558
558
constprompts=answerPrompts({
559
-
'Project type': 'GitHub',
559
+
'Choose a project type to proceed': 'GitHub',
560
560
'Choose an organization': ORG_UID,
561
561
'Project name': 'My Site',
562
562
'Environment name': 'Default',
@@ -594,7 +594,7 @@ describe('integration: launch:projects:create on the wire', () => {
0 commit comments