fix: Use process.stdout.write instead of console.log (#3508)

This commit is contained in:
Haris Gušić
2025-10-28 21:38:08 +01:00
committed by GitHub
parent b261430880
commit 832ffd2303
5 changed files with 15 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import { EOL } from "os"
import { Project } from "../../../project/project"
import { Log } from "../../../util/log"
import { cmd } from "../cmd"
@@ -8,7 +9,7 @@ export const ScrapCommand = cmd({
async handler() {
const timer = Log.Default.time("scrap")
const list = await Project.list()
console.log(list)
process.stdout.write(JSON.stringify(list, null, 2) + EOL)
timer.stop()
},
})