{"id":15394271,"url":"https://github.com/xyproto/ask","last_synced_at":"2025-10-19T06:02:08.627Z","repository":{"id":57496075,"uuid":"209332471","full_name":"xyproto/ask","owner":"xyproto","description":":lips: Ask the user a question on the command line","archived":false,"fork":false,"pushed_at":"2024-05-07T14:24:32.000Z","size":12,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T03:04:07.633Z","etag":null,"topics":["interaction","terminal","text","user-centered-design"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.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":"2019-09-18T14:42:27.000Z","updated_at":"2024-09-11T16:36:12.000Z","dependencies_parsed_at":"2024-05-07T15:47:07.174Z","dependency_job_id":null,"html_url":"https://github.com/xyproto/ask","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/ask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"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":["interaction","terminal","text","user-centered-design"],"created_at":"2024-10-01T15:22:54.649Z","updated_at":"2025-10-04T21:18:57.877Z","avatar_url":"https://github.com/xyproto.png","language":"Go","readme":"# ask\n\nAsk the user a question on the command line.\n\n[![Go](https://github.com/xyproto/ask/actions/workflows/go.yml/badge.svg)](https://github.com/xyproto/ask/actions/workflows/go.yml) [![GoDoc](https://godoc.org/github.com/xyproto/ask?status.svg)](https://godoc.org/github.com/xyproto/ask) [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/xyproto/ask/master/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/xyproto/ask)](https://goreportcard.com/report/github.com/xyproto/ask)\n\n### Example use\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/xyproto/ask\"\n)\n\nfunc main() {\n    var (\n        yes  bool\n        name string\n    )\n    for !yes {\n        name = ask.Ask(\"What is your name? \")\n        yes = ask.YesNo(\"Your name is \"+name+\"?\", false)\n    }\n    fmt.Printf(\"Greetings, %s!\\n\", name)\n}\n```\n\n### General info\n\n* Version: 1.1.0\n* Licence: BSD-3\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Fask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fask/lists"}