{"id":16935435,"url":"https://github.com/codeskyblue/exec","last_synced_at":"2025-03-21T04:27:22.927Z","repository":{"id":8675279,"uuid":"10333359","full_name":"codeskyblue/exec","owner":"codeskyblue","description":"An implement of os/exec, but add timeout option","archived":false,"fork":false,"pushed_at":"2013-07-29T07:56:01.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T01:18:17.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeskyblue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-28T10:37:32.000Z","updated_at":"2016-08-09T07:27:00.000Z","dependencies_parsed_at":"2022-09-11T07:21:12.148Z","dependency_job_id":null,"html_url":"https://github.com/codeskyblue/exec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fexec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fexec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fexec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fexec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeskyblue","download_url":"https://codeload.github.com/codeskyblue/exec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244736118,"owners_count":20501417,"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-13T20:54:31.569Z","updated_at":"2025-03-21T04:27:22.903Z","avatar_url":"https://github.com/codeskyblue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"exec\n====\n[![Build Status](https://drone.io/github.com/shxsun/exec/status.png)](https://drone.io/github.com/shxsun/exec/latest)\n\nAn implement of os/exec, but add timeout option\n\n## Example\n\n    package main\n\n    import (\n        \"fmt\"\n        \"github.com/shxsun/exec\"\n        \"time\"\n    )\n\n    func main() {\n        cmd := exec.Command(\"sleep\", \"2\")\n        cmd.Timeout = time.Second * 1\n        output, err := cmd.Output()\n        if err != nil {\n            fmt.Println(err)\n            return\n        }\n        fmt.Println(\"Output: \", string(output))\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fexec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeskyblue%2Fexec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fexec/lists"}