{"id":38331444,"url":"https://github.com/ilolicon/gosh","last_synced_at":"2026-01-17T02:51:21.711Z","repository":{"id":57706060,"uuid":"501540659","full_name":"ilolicon/gosh","owner":"ilolicon","description":"execute shell command with golang","archived":false,"fork":false,"pushed_at":"2024-03-25T09:40:49.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T09:05:58.585Z","etag":null,"topics":["bash","command","go","shell"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilolicon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-09T07:01:12.000Z","updated_at":"2022-06-09T07:09:50.000Z","dependencies_parsed_at":"2024-03-25T10:47:11.907Z","dependency_job_id":"917445fc-7e52-44f1-8e6b-16eecdacdb87","html_url":"https://github.com/ilolicon/gosh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ilolicon/gosh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilolicon%2Fgosh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilolicon%2Fgosh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilolicon%2Fgosh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilolicon%2Fgosh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilolicon","download_url":"https://codeload.github.com/ilolicon/gosh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilolicon%2Fgosh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","command","go","shell"],"created_at":"2026-01-17T02:51:21.623Z","updated_at":"2026-01-17T02:51:21.691Z","avatar_url":"https://github.com/ilolicon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gosh\n\n## usage example\n\n- single command\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    command \"github.com/ilolicon/gosh\"\n)\n\nfunc main() {\n    cmd := command.NewCommand(\"echo 'hello, gosh'\")\n    _ = cmd.Run()\n    fmt.Printf(\"stdout:%s stderr:%s\\n\", cmd.Stdout(), cmd.Stderr())\n}\n\n```\n\n- multi commands\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    command \"github.com/ilolicon/gosh\"    \n)\n\nfunc main() {\n    cmds := []string{\n        \"echo 'task test'\",\n        \"uptime\",\n        \"date\",\n    }\n    task := command.NewTask(cmds, 10)\n    task.Run(false)\n    for _, v := range task.Result() {\n        fmt.Printf(\"cmd:`%s` stdout:%s stderr:%s success:%t\\n\", v.Cmd, v.Stdout, v.Stderr, v.Success)\n    }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filolicon%2Fgosh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filolicon%2Fgosh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filolicon%2Fgosh/lists"}