add createOpencodeServer to js sdk and wait for readiness. always use random port for opencode serve. add /client and /server imports for js sdk
This commit is contained in:
parent
aa4dba1541
commit
d9233872b9
3 changed files with 57 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ export const ServeCommand = cmd({
|
|||
alias: ["p"],
|
||||
type: "number",
|
||||
describe: "port to listen on",
|
||||
default: 4096,
|
||||
default: 0,
|
||||
})
|
||||
.option("hostname", {
|
||||
alias: ["h"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue