Skip to content

Commit 283a063

Browse files
committed
chore(cli): rebasing head
1 parent 06cecf1 commit 283a063

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

templates/cli/lib/questions.js.twig

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -339,38 +339,6 @@ const questionsCreateMessagingTopic = [
339339
}
340340
];
341341

342-
343-
const questionsPullProject = [
344-
...questionsProject,
345-
{
346-
type: "list",
347-
name: "project",
348-
message: "Choose your {{ spec.title|caseUcfirst }} project.",
349-
choices: async (answers) => {
350-
let response = await projectsList({
351-
parseOutput: false,
352-
queries: [JSON.stringify({ method: 'equal', attribute: 'teamId', values: [answers.organization.id] })],
353-
})
354-
let projects = response["projects"]
355-
let choices = projects.map((project, idx) => {
356-
return {
357-
name: `${project.name} (${project['$id']})`,
358-
value: {
359-
name: project.name,
360-
id: project['$id']
361-
}
362-
}
363-
})
364-
365-
if (choices.length == 0) {
366-
throw new Error("No projects found. Please create a new project.")
367-
}
368-
369-
return choices;
370-
}
371-
}
372-
];
373-
374342
const questionsPullCollection = [
375343
{
376344
type: "checkbox",

0 commit comments

Comments
 (0)