- Fixed output formatting error in ls.ts

- Added an exported `Termos` object entry point
- Defined a basic config for the entry point
- Wrote a self contained initialization function for parsin the config into a returned `Shell` instance
- Adjusted `dev.ts` to use the said entry point
This commit is contained in:
2026-11-16 12:16:49 +01:00
parent d4ec6b0c49
commit 2f25e44681
8 changed files with 236 additions and 102 deletions
+18 -9
View File
@@ -1,11 +1,20 @@
export interface TermosConfig {
serverAddress: string;
dbName: string;
idbName: string;
groups: string[];
users: {
username: string;
groups: string[];
home: string;
}[];
general: {
user: string;
serverAddress?: string;
dbName?: string;
idbName?: string;
};
filesystem: {
json: string;
maxNameLength?: number;
maxPathLength?: number;
maxSymlinkDepth?: number;
};
}
export const defaultConfig: TermosConfig = {
serverAddress: "",
dbName: "termos",
idbName: "cache",
};