{"id":15969775,"url":"https://github.com/thombashi/go-gitexec","last_synced_at":"2025-10-11T05:46:01.756Z","repository":{"id":244670992,"uuid":"815924286","full_name":"thombashi/go-gitexec","owner":"thombashi","description":"Thin wrapper to execute git commands in Go.","archived":false,"fork":false,"pushed_at":"2025-01-04T04:12:35.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T17:42:12.651Z","etag":null,"topics":["git-wrapper","golang-library"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/thombashi/go-gitexec","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/thombashi.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":"2024-06-16T14:45:56.000Z","updated_at":"2025-01-04T04:12:08.000Z","dependencies_parsed_at":"2024-06-16T16:42:34.169Z","dependency_job_id":"aad1c9b6-b9e0-44b7-822f-bdd73d4cbb74","html_url":"https://github.com/thombashi/go-gitexec","commit_stats":null,"previous_names":["thombashi/go-gitexec"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/thombashi/go-gitexec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgo-gitexec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgo-gitexec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgo-gitexec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgo-gitexec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thombashi","download_url":"https://codeload.github.com/thombashi/go-gitexec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thombashi%2Fgo-gitexec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006353,"owners_count":26084087,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["git-wrapper","golang-library"],"created_at":"2024-10-07T19:41:38.299Z","updated_at":"2025-10-11T05:46:01.727Z","avatar_url":"https://github.com/thombashi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-gitexec\n\nThin wrapper to execute git commands in Go.\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/thombashi/go-gitexec.svg)](https://pkg.go.dev/github.com/thombashi/go-gitexec)\n[![Go Report Card](https://goreportcard.com/badge/github.com/thombashi/go-gitexec)](https://goreportcard.com/report/github.com/thombashi/go-gitexec)\n[![CI](https://github.com/thombashi/go-gitexec/actions/workflows/ci.yaml/badge.svg)](https://github.com/thombashi/go-gitexec/actions/workflows/ci.yaml)\n[![CodeQL](https://github.com/thombashi/go-gitexec/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/thombashi/go-gitexec/actions/workflows/github-code-scanning/codeql)\n\n\n## Usage\n\n### Basic Usage\n\n```go\nimport (\n\t\"fmt\"\n\t\"strings\"\n\n\t\"github.com/thombashi/go-gitexec\"\n)\n\nfunc ExampleRunGit() {\n\texecutor, err := gitexec.New(\u0026gitexec.Params{})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := executor.RunGit(\"status\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(result.Stdout.String())\n}\n```\n\n### Usage: with environment variables\n\n```go\nimport (\n    \"fmt\"\n    \"os\"\n    \"strings\"\n\n    \"github.com/thombashi/go-gitexec\"\n)\n\nfunc main() {\n\texecutor, err := gitexec.New(\u0026gitexec.Params{\n\t\tEnv: []string{\n\t\t\t\"GIT_AUTHOR_NAME=John Doe\",\n\t\t\t\"GIT_AUTHOR_EMAIL=johndoe@example.com\",\n\t\t},\n\t})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := executor.RunGit(\"var\", \"GIT_AUTHOR_IDENT\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(result.Stdout.String())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthombashi%2Fgo-gitexec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthombashi%2Fgo-gitexec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthombashi%2Fgo-gitexec/lists"}