chore: generate
This commit is contained in:
@@ -310,9 +310,9 @@ export const ProvidersLoginCommand = effectCmd({
|
|||||||
prompts.intro("Add credential")
|
prompts.intro("Add credential")
|
||||||
if (args.url) {
|
if (args.url) {
|
||||||
const url = args.url.replace(/\/+$/, "")
|
const url = args.url.replace(/\/+$/, "")
|
||||||
const wellknown = (yield* Effect.promise(() =>
|
const wellknown = (yield* Effect.promise(() => fetch(`${url}/.well-known/opencode`).then((x) => x.json()))) as {
|
||||||
fetch(`${url}/.well-known/opencode`).then((x) => x.json()),
|
auth: { command: string[]; env: string }
|
||||||
)) as { auth: { command: string[]; env: string } }
|
}
|
||||||
prompts.log.info(`Running \`${wellknown.auth.command.join(" ")}\``)
|
prompts.log.info(`Running \`${wellknown.auth.command.join(" ")}\``)
|
||||||
const proc = Process.spawn(wellknown.auth.command, { stdout: "pipe", stderr: "inherit" })
|
const proc = Process.spawn(wellknown.auth.command, { stdout: "pipe", stderr: "inherit" })
|
||||||
if (!proc.stdout) {
|
if (!proc.stdout) {
|
||||||
|
|||||||
Reference in New Issue
Block a user