{"id":37140599,"url":"https://github.com/samber/do-template-cli","last_synced_at":"2026-01-14T16:28:48.533Z","repository":{"id":316590283,"uuid":"1064020180","full_name":"samber/do-template-cli","owner":"samber","description":"🛠️ CLI boilerplate showcasing github.com/samber/do","archived":false,"fork":false,"pushed_at":"2025-09-25T13:08:55.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-11T02:37:56.666Z","etag":null,"topics":["boilerplate","cli","container","dependency-injection","di","dig","do","fix","go","injector","invoke","ioc","provide","template","wire"],"latest_commit_sha":null,"homepage":"https://github.com/samber/do","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/samber.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T12:36:16.000Z","updated_at":"2025-09-25T18:05:57.000Z","dependencies_parsed_at":"2025-09-25T14:41:44.197Z","dependency_job_id":null,"html_url":"https://github.com/samber/do-template-cli","commit_stats":null,"previous_names":["samber/do-template-cli"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/samber/do-template-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samber","download_url":"https://codeload.github.com/samber/do-template-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"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":["boilerplate","cli","container","dependency-injection","di","dig","do","fix","go","injector","invoke","ioc","provide","template","wire"],"created_at":"2026-01-14T16:28:48.007Z","updated_at":"2026-01-14T16:28:48.522Z","avatar_url":"https://github.com/samber.png","language":"Go","readme":"\n# CLI boilerplate showcasing github.com/samber/do\n\n![Go Version](https://img.shields.io/badge/Go-%3E%3D%201.23-%23007d9c)\n![Build Status](https://github.com/samber/do-template-cli/actions/workflows/test.yml/badge.svg)\n[![Go report](https://goreportcard.com/badge/github.com/samber/do-template-cli)](https://goreportcard.com/report/github.com/samber/do)\n[![License](https://img.shields.io/github/license/samber/do-template-cli)](./LICENSE)\n\n**⚙️ Fork this repository and start your new project with `do` dependency injection.**\n\nA comprehensive CLI template project demonstrating the full power of the `github.com/samber/do` dependency injection library. This project implements a complete data processing application with type-safe dependency injection, modular architecture, and real-world concerns.\n\nPerfect as a starting point for new Go projects or as a learning resource for understanding dependency injection patterns in Go applications.\n\n**See also:**\n\n- [do-template-api](https://github.com/samber/do-template-api)\n- [do-template-worker](https://github.com/samber/do-template-worker)\n\n## 🚀 Install\n\nClone the repo and install dependencies:\n\n```bash\ngit clone --depth 1 --branch main https://github.com/samber/do-template-cli.git your-project-name\ncd your-project-name\n\ndocker compose up -d\nmake deps\nmake deps-tools\n```\n\n## 💡 Features\n\n- **Type-safe dependency injection** - Service registration and resolution using `samber/do`\n- **Modular architecture** - Clean separation of concerns with dependency tree visualization\n- **CLI framework integration** - Built with Cobra for powerful command-line interfaces\n- **Configuration management** - Environment-based configuration with dependency injection\n- **Data processing pipeline** - Complete example with CSV/JSON processing and file I/O\n- **Repository pattern** - Data access layer with injected dependencies\n- **Service layer** - Business logic with proper dependency management\n- **Application lifecycle** - Health checks and graceful shutdown handling\n- **Comprehensive error handling** - Structured logging and error management\n- **Production-ready** - Ready to fork and customize for your next project\n- **Extensive documentation** - Inline comments explaining every `do` library feature\n\n## 🚀 Contributing\n\n```sh\n# install deps\nmake deps\nmake deps-tools\n\n# compile\nmake build\n\n# build with hot-reload\nmake watch-run\n\n# test with hot-reload\nmake watch-test\n```\n\n## 🤠 `do` documentation\n\n- [GoDoc: https://godoc.org/github.com/samber/do/v2](https://godoc.org/github.com/samber/do/v2)\n- [Documentation](https://do.samber.dev/docs/getting-started)\n\n## 💫 Show your support\n\nGive a ⭐️ if this project helped you!\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/samber?style=for-the-badge)](https://github.com/sponsors/samber)\n\n## 📝 License\n\nCopyright © 2025 [Samuel Berthe](https://github.com/samber).\n\nThis project is [MIT](./LICENSE) licensed.\n","funding_links":["https://github.com/sponsors/samber"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fdo-template-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamber%2Fdo-template-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fdo-template-cli/lists"}