mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-26 04:04:22 +01:00
sync
This commit is contained in:
@@ -8,12 +8,12 @@ import { ModelsDev } from "../../provider/models"
|
||||
|
||||
export const AuthCommand = cmd({
|
||||
command: "auth",
|
||||
describe: "manage credentials",
|
||||
builder: (yargs) =>
|
||||
yargs
|
||||
.command(AuthLoginCommand)
|
||||
.command(AuthLogoutCommand)
|
||||
.command(AuthListCommand)
|
||||
.demandCommand(),
|
||||
.command(AuthListCommand),
|
||||
async handler(args) {},
|
||||
})
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import type { CommandModule } from "yargs"
|
||||
|
||||
export const GenerateCommand = {
|
||||
command: "generate",
|
||||
describe: "Generate OpenAPI and event specs",
|
||||
handler: async () => {
|
||||
const specs = await Server.openapi()
|
||||
const dir = "gen"
|
||||
@@ -17,4 +16,3 @@ export const GenerateCommand = {
|
||||
)
|
||||
},
|
||||
} satisfies CommandModule
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ export const ScrapCommand = cmd({
|
||||
command: "scrap <file>",
|
||||
builder: (yargs) =>
|
||||
yargs.positional("file", { type: "string", demandOption: true }),
|
||||
describe: "test command",
|
||||
async handler() {
|
||||
await App.provide({ cwd: process.cwd(), version: VERSION }, async (app) => {
|
||||
Bun.resolveSync("typescript/lib/tsserver.js", app.path.cwd)
|
||||
|
||||
Reference in New Issue
Block a user