Execute bash AST nodes given by bash-parser.
deno add @ein/bash-executor
# or
jsr add @ein/bash-executorimport { AstExecutor, ExecContext, ExecContextIf, ShellIf } from '@ein/bash-executor';
class Shell implements ShellIf {
// Implement required methods...
}
const ctx: ExecContextIf = new ExecContext();
const shell: ShellIf = new Shell();
const executor = new AstExecutor();
const exitCode = await this.executor.execute('echo "Hello World"', ctx);Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines on how to contribute to this project.
This project is licensed under the MIT License. See the LICENSE file for more details.
For questions or support, please open an issue on the GitHub repository.