mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Make FS paths configurable
This commit is contained in:
43 files changed
+393
-124
No files matched your search
@@ -19,6 +19,8 @@ export interface Project {
|
||||
export interface ProjectsManagerOptions {
|
||||
fs: JSRuntimeFS;
|
||||
git: Git;
|
||||
/** Projects directory path (default: /projects) */
|
||||
projectsPath?: string;
|
||||
}
|
||||
|
||||
export class ProjectsManager {
|
||||
@@ -29,7 +31,7 @@ export class ProjectsManager {
|
||||
constructor(options: ProjectsManagerOptions) {
|
||||
this.fs = options.fs;
|
||||
this.git = options.git;
|
||||
this.dir = '/projects';
|
||||
this.dir = options.projectsPath || '/projects';
|
||||
}
|
||||
|
||||
async init() {
|
||||
|
||||
Reference in new issue
Block a user