progress, dont really know what to put in here...

This commit is contained in:
2025-12-08 06:57:38 +01:00
committed by Kamil Olszewski
parent 8a06d7cb93
commit a109c7115e
10 changed files with 1908 additions and 1942 deletions

View File

@@ -19,7 +19,7 @@ export type TimeStamps = {
mTime: Date;
cTime: Date;
aTime: Date;
}
};
// TODO: Finish this
// TODO: Change into a type instead of an enum for performance (low priority)
@@ -103,13 +103,14 @@ export class Bash {
if (command.root) {
if (this.hasSudoPerms(this.user.uid)) {
let out: Result = command.method.call(this, args);
this.appendNewResult(this.getPwd(), out, this.user.history[0]);
this.appendNewResult(this.getCwd(), out, this.user.history[0]);
}
this.throwError(result);
}
let out: Result = command.method.call(this, args);
this.appendNewResult(this.getPwd(), out.data?.data, this.user.history[0]);
console.log(out);
this.appendNewResult(this.getCwd(), out.data?.data, this.user.history[0]);
}
throwError(result: Result): void {
@@ -135,6 +136,7 @@ export class Bash {
output: output,
cmd: cmd
};
console.log(data);
this._terminal.PrintOutput(data);
}