Key Features • How To Use • Related • License
- All write in Swift
- Run shell in Reactive X way
- DSL Interface for create shell command
- Custom Pipe
- Custom Enviroment
- Macro Support
let enviroment = [
"HELLOWORLD_STR": "Hello Bash"
]
Shells(verbose: true, environment: enviroment) {
Commands {
Shell.removeDirectoryIfExist("/tmp/tmp_file")
Command("touch /tmp/tmp_file")
}
Command("echo $HELLOWORLD_STR > /tmp/tmp_file")
Commands {
"cat /tmp/tmp_file"
}
}.action.subscribe().dispose()
If you don't want RxShell Output shell command result, you can just set verbose to false
Shells(verbose: false) {
// Commands
}
Thanks:
MIT License