Skip to content

Commit

Permalink
wip-use-custom-command-for-tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
deribaucourt committed Sep 16, 2024
1 parent bfa190a commit 9eb9878
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions client/src/ui/BitbakeCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,12 @@ async function runTaskCommand (bitbakeWorkspace: BitbakeWorkspace, bitBakeProjec
}
if (chosenTask !== undefined) {
logger.debug(`Command: run-task: ${chosenRecipe}, ${chosenTask}`)
await runBitbakeTerminal(bitBakeProjectScanner.bitbakeDriver,
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
{
recipes: [chosenRecipe],
task: chosenTask
} as BitbakeTaskDefinition,
`Bitbake: Task: ${chosenTask}: ${chosenRecipe}`)
const taskDef = {

Check failure on line 207 in client/src/ui/BitbakeCommands.ts

View workflow job for this annotation

GitHub Actions / build-test-vscode

Always prefer const x: T = { ... }
recipes: [chosenRecipe],
task: chosenTask
} as BitbakeTaskDefinition
const command = bitBakeProjectScanner.bitbakeDriver.composeBitbakeCommand(taskDef)
await runBitbakeTerminalCustomCommand(bitBakeProjectScanner.bitbakeDriver, command, `Bitbake: Task: ${chosenTask}: ${chosenRecipe}`)
}
}
}
Expand Down

0 comments on commit 9eb9878

Please sign in to comment.