UNPKG

projecthor

Version:

Save, manage, and run project setup commands automatically from the CLI.

18 lines (17 loc) 775 B
import { LowSync } from 'lowdb'; import { Project } from './types.js'; interface DBData { defaultFolder: string; projects: Project[]; } declare const db: LowSync<DBData>; export declare function saveProject(project: Project): void; export declare function getProjects(): Project[]; export declare function isExistingProject(projectName: string): boolean; export declare function existProjectFolder(projectName: string): boolean; export declare function getProjectFolder(projectName: string): string; export declare function getDefaultFolder(): string; export declare function alreadyExist(project: Project): boolean; export declare function setDefaultFolder(path: string): void; export declare function deleteProject(targetProject: Project): void; export default db;