On this page
server.Server.ifShell
- Module
- server
- Declared in
- Server
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/server.ts
- ifShell ( condition : : string , command : : string , options : : IfShellOptions ) Promise<void>
-
Run one command or another depending on a condition.
Examples
await server.ifShell("test -d /tmp", "display-message 'present'");
0 declared, 0 inherited