{"id":25628177,"url":"https://github.com/OSSystems/easy-process-rs","last_synced_at":"2026-06-08T22:30:13.439Z","repository":{"id":52418462,"uuid":"135497136","full_name":"OSSystems/easy-process-rs","owner":"OSSystems","description":"Allow running external commands and properly handle its success and failures.","archived":false,"fork":false,"pushed_at":"2024-08-08T08:46:24.000Z","size":58,"stargazers_count":16,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T17:02:26.834Z","etag":null,"topics":["crates","parse","process","rust","shell-script"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/easy_process","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OSSystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-30T21:00:31.000Z","updated_at":"2024-02-03T01:14:46.000Z","dependencies_parsed_at":"2024-10-29T21:30:03.853Z","dependency_job_id":null,"html_url":"https://github.com/OSSystems/easy-process-rs","commit_stats":null,"previous_names":["otavio/easy-process-rs"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Feasy-process-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Feasy-process-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Feasy-process-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OSSystems%2Feasy-process-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OSSystems","download_url":"https://codeload.github.com/OSSystems/easy-process-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240215845,"owners_count":19766482,"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":["crates","parse","process","rust","shell-script"],"created_at":"2025-02-22T18:21:51.965Z","updated_at":"2026-06-08T22:30:13.383Z","avatar_url":"https://github.com/OSSystems.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://coveralls.io/repos/github/OSSystems/easy-process-rs/badge.svg?branch=master)](https://coveralls.io/github/OSSystems/easy-process-rs?branch=master)\n[![Documentation](https://docs.rs/easy_process/badge.svg)](https://docs.rs/easy_process)\n\n# easy_process\n\nAllow running external commands and properly handle its success\nand failures.\n\n| Platform | Build Status |\n| -------- | ------------ |\n| Linux | [![build status](https://github.com/OSSystems/easy-process-rs/workflows/CI%20(Linux)/badge.svg)](https://github.com/OSSystems/easy-process-rs/actions) |\n| macOS | [![build status](https://github.com/OSSystems/easy-process-rs/workflows/CI%20(macOS)/badge.svg)](https://github.com/OSSystems/easy-process-rs/actions) |\n| Windows | [![build status](https://github.com/OSSystems/easy-process-rs/workflows/CI%20(Windows)/badge.svg)](https://github.com/OSSystems/easy-process-rs/actions) |\n\n---\n\nThis creates provides a `run` function that does inline parsing of\nliteral command line strings (handling escape codes and splitting\nat whitespace) and checks the `ExitStatus` of the command. If it\ndidn't succeed they will return a `Err(...)` instead of a\n`Ok(...)`.\n\nNote that the provided functions do return their own `Output`\nstruct instead of [`std::process::Output`].\n\n## Example\n```rust\nuse easy_process;\n\n// stdout\nlet output = easy_process::run(r#\"sh -c 'echo \"1 2 3 4\"'\"#)?;\nassert_eq!(\u0026output.stdout, \"1 2 3 4\\n\");\n\n// stderr\nlet output = easy_process::run(r#\"sh -c 'echo \"1 2 3 4\" \u003e\u00262'\"#)?;\nassert_eq!(\u0026output.stderr, \"1 2 3 4\\n\");\n```\n\n[`std::process::Output`]: https://doc.rust-lang.org/std/process/struct.Output.html\n\nCommands on windows are also supported in the same way:\n\n```rust\nlet output = easy_process::run(r#\"powershell /C 'echo \"1 2 3 4\"'\"#)?;\nassert_eq!(\u0026output.stdout, \"1 2 3 4\\r\\n\");\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the\nApache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOSSystems%2Feasy-process-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOSSystems%2Feasy-process-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOSSystems%2Feasy-process-rs/lists"}