Skip to content

Commit b5012d8

Browse files
authored
chore: add a warning when running in .Trash folder (#3273)
1 parent 8d415eb commit b5012d8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

genkit-tools/cli/src/commands/start.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,16 @@ export const start = new Command('start')
3636
.option('-p, --port <port>', 'port for the Dev UI')
3737
.option('-o, --open', 'Open the browser on UI start up')
3838
.action(async (options: RunOptions) => {
39+
const projectRoot = await findProjectRoot();
40+
if (projectRoot.includes('/.Trash/')) {
41+
logger.warn(
42+
'It appears your current project root is in the trash folder. ' +
43+
'Please make sure that you current working directory is correct.'
44+
);
45+
}
3946
// Always start the manager.
4047
let managerPromise: Promise<RuntimeManager> = startManager(
41-
await findProjectRoot(),
48+
projectRoot,
4249
true
4350
);
4451
if (!options.noui) {

0 commit comments

Comments
 (0)