move builtin commands out of list.ts into their own files
This commit is contained in:
11
src/components/client/shell/command/builtin/ls.ts
Normal file
11
src/components/client/shell/command/builtin/ls.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import type { Args, Term } from "../list";
|
||||
|
||||
export default function ls(term: Term, args: Args): boolean {
|
||||
// if (args[1] === undefined) {
|
||||
// for (const dir_name in working_dir) {
|
||||
|
||||
// }
|
||||
// return <p>{`${working_dir}`}</p>
|
||||
// }
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user