{"id":19634912,"url":"https://github.com/rikonor/go-cmdio","last_synced_at":"2025-07-21T09:33:04.823Z","repository":{"id":72775012,"uuid":"120697709","full_name":"rikonor/go-cmdio","owner":"rikonor","description":"Run an executable and provide it input/output files via io.Reader/io.Writer","archived":false,"fork":false,"pushed_at":"2018-05-22T21:06:37.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T21:44:49.502Z","etag":null,"topics":["exec","go","stdin","stdio-wrapper","stdout"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rikonor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02-08T02:06:54.000Z","updated_at":"2018-05-22T21:06:38.000Z","dependencies_parsed_at":"2023-05-14T01:00:17.117Z","dependency_job_id":null,"html_url":"https://github.com/rikonor/go-cmdio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rikonor/go-cmdio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikonor%2Fgo-cmdio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikonor%2Fgo-cmdio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikonor%2Fgo-cmdio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikonor%2Fgo-cmdio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikonor","download_url":"https://codeload.github.com/rikonor/go-cmdio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikonor%2Fgo-cmdio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266276125,"owners_count":23903981,"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":["exec","go","stdin","stdio-wrapper","stdout"],"created_at":"2024-11-11T12:23:11.224Z","updated_at":"2025-07-21T09:33:04.803Z","avatar_url":"https://github.com/rikonor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmdio\n\nRun an executable and provide it input/output files via io.Reader/io.Writer.\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"os\"\n    \"os/exec\"\n    \"strings\"\n\n    cmdio \"github.com/rikonor/go-cmdio\"\n)\n\nfunc main() {\n    r := strings.NewReader(\"Hello!\")\n    w := os.Stdout\n\n    execPath := \"./text-doubler\"\n    execArgs := []string{\"INPUT\", \"OUTPUT\"}\n\n    tmpArgs, closeFn, err := cmdio.WrapSimple(r, w, execArgs)\n    if err != nil {\n        log.Fatal(err)\n    }\n    defer closeFn()\n\n    cmd := exec.Command(execPath, tmpArgs...)\n    if err := cmd.Run(); err != nil {\n        log.Fatal(err)\n    }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikonor%2Fgo-cmdio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikonor%2Fgo-cmdio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikonor%2Fgo-cmdio/lists"}