import path from 'node:path'

/**
 * Mutable runtime data belongs to the project directory from which Bosun was launched,
 * not the Bosun install/repo directory.
 */
export function getProjectDataDir(...segments: string[]): string {
	return path.resolve(process.cwd(), 'data', ...segments)
}
