more features, flags now mostly work, added support for -R flag in ls with a custom bash method for recursive tree traversal

This commit is contained in:
2026-02-16 07:38:12 +01:00
parent 0ad0e362d6
commit 1faab39849
10 changed files with 104 additions and 67 deletions

View File

@@ -0,0 +1,15 @@
import { ExitCode, type Bash } from "../bash";
import type { CommandArgs, ICommand, Result } from "../static";
export const cmd_clear = function(this: Bash, args: CommandArgs): Result {
let result: Result = { exitCode: ExitCode.ERROR, path: this.getCwd() };
result.exitCode = ExitCode.SUCCESS;
return result;
}
export const clear: ICommand = {
method: cmd_clear,
flags: [] as string[],
help: 'PATH TO HELP.md',
root: false
};