16 lines
486 B
Plaintext
16 lines
486 B
Plaintext
#!/usr/bin/env -S v -n -cg -w -enable-globals run
|
|
|
|
import incubaid.herolib.baobab.stages.accountant
|
|
import veb
|
|
import incubaid.herolib.schemas.openrpc
|
|
import os
|
|
import incubaid.herolib.core.pathlib
|
|
|
|
const openrpc_path = '@{dollar}{os.dir(os.dir(@@FILE))}/openrpc.json'
|
|
const playground_path = '@{dollar}{os.dir(os.dir(@@FILE))}/playground'
|
|
|
|
pg := openrpc.new_playground(
|
|
dest: pathlib.get_dir(path: playground_path)!
|
|
specs: [pathlib.get_file(path:openrpc_path)!]
|
|
)!
|
|
veb.run(pg, 8080) |