import { y as resolveStateDir } from "./paths-CiHrdfZh.js";
import { t as loadGlobalRuntimeDotEnvFiles } from "./dotenv-global-WWuKGioD.js";
import { n as loadWorkspaceDotEnvFile } from "./dotenv-mO3rcrwZ.js";
import path from "node:path";
//#region src/cli/dotenv.ts
function loadCliDotEnv(opts) {
	const quiet = opts?.quiet ?? true;
	loadWorkspaceDotEnvFile(path.join(process.cwd(), ".env"), { quiet });
	loadGlobalRuntimeDotEnvFiles({
		quiet,
		stateEnvPath: path.join(resolveStateDir(process.env), ".env")
	});
}
//#endregion
export { loadCliDotEnv };
