Add options/flags for built-in commands. These are commands that are implemented in TypeScript rather than WebAssembly, and correspond to commands that would be implemented in the shell. Current examples supported are history -c to clear the history, and alias ls='ls -F' to set an alias.
Most of the code for this was implemented in cockle right at the beginning, before addition of the WASM commands, so this is just reintroducing it and tidying it up somewhat.
Built-in commands that are exported in src/builtin/index.ts are automaticaly registered in the CommandRegistry.
Add options/flags for built-in commands. These are commands that are implemented in TypeScript rather than WebAssembly, and correspond to commands that would be implemented in the shell. Current examples supported are
history -c
to clear the history, andalias ls='ls -F'
to set an alias.Most of the code for this was implemented in
cockle
right at the beginning, before addition of the WASM commands, so this is just reintroducing it and tidying it up somewhat.Built-in commands that are exported in
src/builtin/index.ts
are automaticaly registered in theCommandRegistry
.