First attempt at Python port, expand tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import fs from 'node:fs/promises'
|
||||
import { useDocument } from '@terrace/core'
|
||||
import { createReadlineReader } from '@terrace/core/readers/node-readline'
|
||||
import { createFileReader } from '@terrace/core/readers/node-readline'
|
||||
|
||||
function useHelpers({ next, level, head, tail }) {
|
||||
|
||||
@@ -18,7 +18,7 @@ function useHelpers({ next, level, head, tail }) {
|
||||
}
|
||||
|
||||
async function buildPackage() {
|
||||
const { next, level, head, tail, match } = useDocument(createReadlineReader('./repo/package.tce'))
|
||||
const { next, level, head, tail, match } = useDocument(createFileReader('./repo/package.tce'))
|
||||
const { kvObject } = useHelpers({ next, level, head, tail })
|
||||
|
||||
const pkg = {}
|
||||
@@ -38,7 +38,7 @@ async function buildPackage() {
|
||||
}
|
||||
|
||||
async function buildTurbo() {
|
||||
const { next, level, head, tail, match } = useDocument(createReadlineReader('./repo/turbo.tce'))
|
||||
const { next, level, head, tail, match } = useDocument(createFileReader('./repo/turbo.tce'))
|
||||
const { kvObject } = useHelpers({ next, level, head, tail })
|
||||
|
||||
const turbo = {}
|
||||
|
||||
Reference in New Issue
Block a user