- 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:
+18
-9
@@ -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",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user