{"id":18082725,"url":"https://github.com/juhp/simple-cmd","last_synced_at":"2025-06-16T15:09:04.600Z","repository":{"id":56878020,"uuid":"88258933","full_name":"juhp/simple-cmd","owner":"juhp","description":"Simple Haskell shell command process wrapper library","archived":false,"fork":false,"pushed_at":"2022-09-17T08:50:24.000Z","size":118,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-29T05:17:27.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juhp.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-14T10:33:01.000Z","updated_at":"2023-01-25T10:49:12.000Z","dependencies_parsed_at":"2022-08-20T23:10:11.418Z","dependency_job_id":null,"html_url":"https://github.com/juhp/simple-cmd","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/juhp/simple-cmd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhp%2Fsimple-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhp%2Fsimple-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhp%2Fsimple-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhp%2Fsimple-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juhp","download_url":"https://codeload.github.com/juhp/simple-cmd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhp%2Fsimple-cmd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260183013,"owners_count":22971195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T14:05:46.153Z","updated_at":"2025-06-16T15:09:04.536Z","avatar_url":"https://github.com/juhp.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Hackage](http://img.shields.io/hackage/v/simple-cmd.png)](http://hackage.haskell.org/package/simple-cmd)\n[![Stackage LTS](http://stackage.org/package/simple-cmd/badge/lts)](http://stackage.org/lts/package/simple-cmd)\n[![Stackage Nightly](http://stackage.org/package/simple-cmd/badge/nightly)](http://stackage.org/nightly/package/simple-cmd)\n\n# simple-cmd\n\nSome simple String wrappers of `readProcess`, `readProcessWithExitCode`,\n`rawSystem` from the Haskell `process` library.\n\n## Usage\n\n```haskell\nimport SimpleCmd\n```\n\n```haskell\ncmd_ :: String -\u003e [String] -\u003e IO ()\n```\noutputs to stdout. For example\n\n```haskell\ncmd_ \"echo\" [\"Hello\"]\ncmd_ \"git\" [\"clone\", url]\n```\nThis can shortened to `git_ \"clone\" [url]`.\n\n```haskell\ncmd :: String -\u003e [String] -\u003e IO String\n```\nreturns stdout as a `String`. eg\n\n```haskell\ndate \u003c- cmd \"date\" []\n```\n\nThere are also `cmdBool`, `cmdMaybe`, `cmdList`, `shell`, and others.\n\nSimple pipes are also supported:\n```haskell\npipe_ (\"echo\",[\"hello\"]) (\"grep\",[\"ello\"])\n```\n`pipeBool` returns True if both commands succeed.\n\nOther examples:\n```haskell\ngitBranch :: IO String\ngrep_ pat file :: IO Bool\nsudo_ c args :: IO ()\ntimeIO :: IO a -\u003e IO a\n```\n\nSee the library documentation for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuhp%2Fsimple-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuhp%2Fsimple-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuhp%2Fsimple-cmd/lists"}