continue-custom/core/control-plane/flags.ts
2025-01-14 11:44:21 -08:00

13 lines
357 B
TypeScript

import { readUsePlatform, usePlatformPathExists } from "../util/paths";
export function usePlatform(): boolean {
return usePlatformPathExists();
}
export function getEnvFromUsePlatformFile(): string | undefined {
const contents = readUsePlatform();
if (contents && contents.trim().length > 0) {
return contents.trim();
}
return undefined;
}