start file watcher only for tui

This commit is contained in:
Dax Raad
2025-07-07 21:04:29 -04:00
parent c7a59ee2b1
commit 6100a77b85
2 changed files with 2 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ import { Installation } from "../../installation"
import { Config } from "../../config/config"
import { Bus } from "../../bus"
import { Log } from "../../util/log"
import { FileWatcher } from "../../file/watch"
export const TuiCommand = cmd({
command: "$0 [project]",
@@ -40,6 +41,7 @@ export const TuiCommand = cmd({
return
}
const result = await bootstrap({ cwd }, async (app) => {
FileWatcher.init()
const providers = await Provider.list()
if (Object.keys(providers).length === 0) {
return "needs_provider"