{"id":16473671,"url":"https://github.com/guumaster/surveygen","last_synced_at":"2025-03-23T11:32:51.374Z","repository":{"id":57518085,"uuid":"247651834","full_name":"guumaster/surveygen","owner":"guumaster","description":"generate interactive surveys from yaml files","archived":false,"fork":false,"pushed_at":"2020-03-16T11:09:16.000Z","size":29,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T20:07:58.402Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guumaster.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}},"created_at":"2020-03-16T08:45:08.000Z","updated_at":"2023-09-10T01:05:20.000Z","dependencies_parsed_at":"2022-09-15T21:52:32.400Z","dependency_job_id":null,"html_url":"https://github.com/guumaster/surveygen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guumaster%2Fsurveygen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guumaster%2Fsurveygen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guumaster%2Fsurveygen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guumaster%2Fsurveygen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guumaster","download_url":"https://codeload.github.com/guumaster/surveygen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245097158,"owners_count":20560311,"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-11T12:27:50.743Z","updated_at":"2025-03-23T11:32:50.940Z","avatar_url":"https://github.com/guumaster.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub Release](https://img.shields.io/github/release/guumaster/surveygen.svg?logo=github\u0026labelColor=262b30)](https://github.com/guumaster/surveygen/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/guumaster/surveygen)](https://goreportcard.com/report/github.com/guumaster/surveygen)\n[![License](https://img.shields.io/github/license/guumaster/surveygen)](https://github.com/guumaster/surveygen/LICENSE)\n\n# surveygen\n\n\u003e generate interactive surveys from yaml files\n\nGenerate code for surveys that you can use with [github.com/AlecAivazis/survey](https://github.com/AlecAivazis/survey/v2).\n\nIt will save you some time if you need to maintain large surveys and prefer to keep a simple yaml file instead of code.\n\nCheck [an example yaml](example/demo/my_awesome_survey.yaml) to see how to create it and use it in [code](example/main.go).\n\n\n## Installation\n\n### Binaries \nGo to [release page](https://github.com/guumaster/surveygen/releases) and download the binary you need.\n\n### Module\ngo get github.com/guumaster/surveygen \n\n\n\n### Usage as CLI:\n\n```\n\tsurveygen is a CLI tool to generate go code for surveys from a yaml definition file.\n\n\tUsage:\n\t  surveygen [flags]\n\n\tFlags:\n\t  -h, --help           help for surveygen\n\t  -p, --path strings   path to look for survey definitions (default [$CWD])\n\n```\n\n\n\n## Usage as module:\n\ncd into your project root folder, then run:\n\n```\n\t$\u003e go run github.com/guumaster/surveygen . --path path/to/your/survey\n```\n\n\n## Usage with `go generate`\n\nAdd the following line to your main or any other .go file you prefer:\n\n```\n\t//go:generate surveygen --path demo --path path/to/your/survey --path another/path\n```\n\n### TODO\n\nFeatures that I'd like to add: \n\n  * [ ] Some more documentation\n  * [ ] Allow usage as module to generate questions on the fly instead of generating code\n  * [ ] Validate yaml content, right now it may panic or generate wrong code\n\n\n### References\n\n  * [spf13/cobra](https://github.com/spf13/cobra)\n  * [AlecAivazis/survey](https://github.com/AlecAivazis/survey)\n\n\n### LICENSE\n [MIT license](LICENSE)\n\n\n### Author(s)\n* [guumaster](https://github.com/guumaster)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguumaster%2Fsurveygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguumaster%2Fsurveygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguumaster%2Fsurveygen/lists"}