-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18b7aaf
commit 16eafa1
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { | ||
type FdsFile, | ||
verifyInput, | ||
} from "jsr:@smoke-cloud/[email protected]"; | ||
} from "jsr:@smoke-cloud/[email protected]"; | ||
import * as fdsInspect from "jsr:@smoke-cloud/[email protected]"; | ||
import { Command } from "jsr:@cliffy/[email protected]"; | ||
import { open } from "./open.ts"; | ||
import { | ||
|
@@ -10,8 +11,6 @@ import { | |
renderTypstPdf, | ||
renderVerificationTypst, | ||
} from "jsr:@smoke-cloud/[email protected]"; | ||
import { countCells, summarise_input } from "../fds-inspect-core/summary.ts"; | ||
// import { getJson, verifyInputRender } from "jsr:@smoke-cloud/[email protected]"; | ||
|
||
await new Command() | ||
.name("tway-server-manager") | ||
|
@@ -31,7 +30,7 @@ await new Command() | |
.arguments("<input-path:string>") | ||
.action(async (_options, ...args) => { | ||
const fdsFile = await getJson(args[0]); | ||
const nCells = countCells(fdsFile); | ||
const nCells = fdsInspect.summary.countCells(fdsFile); | ||
console.log(nCells); | ||
}) | ||
// Get Threadway Send | ||
|
@@ -133,7 +132,7 @@ await new Command() | |
const inputPath = args[0]; | ||
const fdsFile: FdsFile = await getJsonTemp(inputPath); | ||
const verificationSummary = verifyInput(fdsFile); | ||
const inputSummary = summarise_input(fdsFile); | ||
const inputSummary = fdsInspect.summary.summarise_input(fdsFile); | ||
const typst = renderVerificationTypst(inputSummary, verificationSummary); | ||
const tempFile = await Deno.makeTempFile({ | ||
prefix: fdsFile.chid, | ||
|