mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
sync
This commit is contained in:
parent
c79f986463
commit
eb4c5f4eac
1 changed files with 6 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ import { CommandProvider, useCommandDialog } from "./component/dialog-command"
|
|||
import { DialogAgent } from "./component/dialog-agent"
|
||||
import { DialogSessionList } from "./component/dialog-session-list"
|
||||
import { KeybindProvider, useKeybind } from "./context/keybind"
|
||||
import { Config } from "../../../config/config"
|
||||
import { Instance } from "../../../project/instance"
|
||||
|
||||
export const TuiCommand = cmd({
|
||||
command: "$0 [project]",
|
||||
|
|
@ -63,6 +65,10 @@ export const TuiCommand = cmd({
|
|||
default: "127.0.0.1",
|
||||
}),
|
||||
handler: async () => {
|
||||
await Instance.provide({
|
||||
directory: process.cwd(),
|
||||
fn: () => Config.get(),
|
||||
})
|
||||
await render(
|
||||
() => {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue