On this page
server.Server.runShell
- Module
- server
- Declared in
- Server
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/server.ts
- runShell ( command : : string , options : : RunShellOptions ) Promise<readonly string[]>
-
Run a shell command through tmux and return whatever it printed.
Examples
const lines = await server.runShell("echo hello"); lines[0]; // "hello"
0 declared, 0 inherited