CmST0us/RxShell
Launch bash shell in Reactive way, and also provide DSL Interface
Key Features
- All write in Swift
- Run shell in Reactive X way
- DSL Interface for create shell command
- Custom Pipe
- Custom Enviroment
- [ ] Macro Support
How To Use
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()Verbose
If you don't want RxShell Output shell command result, you can just set verbose to false
Shells(verbose: false) {
// Commands
}License
MIT License
Package Metadata
Repository: CmST0us/RxShell
Stars: 0
Forks: 0
Open issues: 0
Default branch: main
Primary language: swift
License: MIT
Topics: bash, command-line, linux, process, reactivex, rxswift, swift
README: README.md