José Henrique f39333cae6
All checks were successful
Master Build / Build and Push Docker Image (amd64) (push) Successful in 53s
Master Build / Update running container (push) Successful in 52s
implement shell command interface and add basic commands (echo, ls, pwd, cd, touch, cat, rm) with syscall integration
2025-01-23 15:22:42 -03:00

14 lines
322 B
TypeScript

import { IShellCommand } from "./IShellCommand";
export class echo implements IShellCommand {
getName(): string {
return 'echo';
}
execute(input: string | string[]): string {
if (Array.isArray(input)) {
return input.join(' ').trim();
}
return input.trim();
}
}