Skip to content

Commit

Permalink
feat: failed tasks don't impact other tasks and
Browse files Browse the repository at this point in the history
  • Loading branch information
field123 committed Jan 18, 2024
1 parent 73d2d3b commit 832e778
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions packages/composable-cli/src/commands/generate/d2c/tasks/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,26 @@ import { setupAccountsTask } from "./setup-accounts"
import { createInitialCommit } from "../../utils/git-commit"

export function createD2CSetupTask() {
return new Listr<D2CSetupTaskContext>([
{
title: "Initialize Git",
task: async (ctx) => {
if (!ctx.skipGit) {
await createInitialCommit(ctx.workspaceRoot)
}
return new Listr<D2CSetupTaskContext>(
[
{
title: "Initialize Git",
task: async (ctx) => {
if (!ctx.skipGit) {
await createInitialCommit(ctx.workspaceRoot)
}
},
},
},
{
title: "Setup accounts",
task: setupAccountsTask,
},
],
{
title: "Setup accounts",
task: setupAccountsTask,
exitOnError: false,
rendererOptions: {
collapseErrors: false,
},
},
])
)
}

0 comments on commit 832e778

Please sign in to comment.