https://github.com/gianlucaguarini/executor
Haskell module to execute single or multiple shell commands
https://github.com/gianlucaguarini/executor
Last synced: 3 months ago
JSON representation
Haskell module to execute single or multiple shell commands
- Host: GitHub
- URL: https://github.com/gianlucaguarini/executor
- Owner: GianlucaGuarini
- License: mit
- Created: 2017-08-19T18:26:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T18:10:36.000Z (almost 8 years ago)
- Last Synced: 2025-04-27T22:35:10.305Z (3 months ago)
- Language: Haskell
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# executor
Haskell module to execute single or multiple shell commands[![Build Status][travis-image]][travis-url]
[![MIT License][license-image]][license-url]# API
## exec
Execute a single shell command returning its output
```hs
import Executor (exec)main = do
-- execute a simple `ls` in the current folder
res <- exec "echo hi"
-- hi\n
```## execSequenceSync
Execute a list of shell commands in sequence synchronously returning their results in a list
```hs
import Executor (execSequenceSync)main = do
-- execute synchronously the following commands
res <- execSequenceSync [
"echo hi",
"sleep 1",
"echo goodbye"
]
-- ["hi\n", "", "goodbye\n"]
```[travis-image]:https://img.shields.io/travis/GianlucaGuarini/executor.svg?style=flat-square
[travis-url]:https://travis-ci.org/GianlucaGuarini/executor[license-image]:http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
[license-url]:LICENSE