{"id":20129072,"url":"https://github.com/theyakka/tardy","last_synced_at":"2025-04-09T15:54:12.644Z","repository":{"id":57547152,"uuid":"63924204","full_name":"theyakka/tardy","owner":"theyakka","description":"Deal with CLI prompts in style","archived":false,"fork":false,"pushed_at":"2019-01-03T22:17:51.000Z","size":18,"stargazers_count":40,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T18:11:28.147Z","etag":null,"topics":["cli","go","golang","prompt","terminal"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theyakka.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":"2016-07-22T04:44:06.000Z","updated_at":"2024-04-27T07:21:03.000Z","dependencies_parsed_at":"2022-09-26T18:40:45.530Z","dependency_job_id":null,"html_url":"https://github.com/theyakka/tardy","commit_stats":null,"previous_names":["goposse/tardy"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyakka%2Ftardy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyakka%2Ftardy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyakka%2Ftardy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyakka%2Ftardy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theyakka","download_url":"https://codeload.github.com/theyakka/tardy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248064684,"owners_count":21041862,"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":["cli","go","golang","prompt","terminal"],"created_at":"2024-11-13T20:31:51.817Z","updated_at":"2025-04-09T15:54:12.597Z","avatar_url":"https://github.com/theyakka.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp style=\"padding-top: 10px;padding-bottom: 20px\"\u003e\n\u003cimg src=\"https://storage.googleapis.com/product-logos/logo_tardy.png\" height=\"70\"/\u003e\n\u003c/p\u003e\n\nTardy is an easy to use, but highly configurable, CLI / terminal prompt library for Go.\n\n[![Go Version](https://img.shields.io/badge/Go-1.4+-lightgrey.svg)](https://golang.org/)\n[![Build Status](https://travis-ci.org/theyakka/tardy.svg?branch=master)](https://travis-ci.org/theyakka/tardy)\n[![Coverage](https://coveralls.io/repos/github/theyakka/tardy/badge.svg?branch=master)](https://coveralls.io/github/theyakka/tardy?branch=master)\n[![GoDoc](https://godoc.org/github.com/theyakka/tardy?status.svg)](http://godoc.org/github.com/theyakka/tardy)\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n# Features\n\nWhat can tardy do? Lots!\n\n- Simple, straightforward prompt mechanism\n- Per-prompt return values or catch-all so you can check all prompts at the end\n- Built in `Prompt` types for common use-cases\n  - Open-ended string values\n  - Yes / No values\n  - Pick from list of possible values\n- Retry values that don't meet criteria or are not supplied (if not optional)\n- Optionality and default prompt values\n- Case sensitive (or insensitive) matching\n- Extensible `Prompt` struct so you're not constrained when you need a custom input type with the following features:\n  - Prompt validation function\n  - Value conversion function (from string to whatever you want)\n\n# Installing\n\nTo install, run:\n\n```\ngo get -u github.com/theyakka/tardy\n```\n\nYou can then import tardy using:\n\n```\nimport github.com/theyakka/tardy\n```\n\n# Getting started\n\nThis is a super simple overview. If you want to really understand Tardy, we suggest you check out the [Tardy Guide](https://github.com/theyakka/tardy/wiki).\n\nAnyhow, let's run through a super simple example.\n\n```go\np := tardy.NewPrompter()\np.Prompt(tardy.SimplePrompt(\"What is your name?\", tardy.Required, \"\"))\nfmt.Println(\"Your name is:\", p.IndexedValues[0])\n```\n\nWhen run, you will see a prompt. After entering a value you should see something like the following:\n\n```\nWhat is your name?:  John Smith\nYour name is: John Smith\n```\n\n\n# FAQ\n\n## Why should I use this and not ____?\n\nWhy not?\n\nWe designed this library because nothing else fit our needs. If it fits yours, cool. If not, we won't hold it against you if you use something else.\n\nGive it a try and if you like it, let us know! Either way, we love feedback.\n\n## Has it been tested in production? Can I use it in production?\n\nThe code here has been written based on Yakka's experiences with clients of all sizes. It has been production tested. That said, code is always evolving. We plan to keep on using it in production but we also plan to keep on improving it. If you find a bug, let us know!\n\n# Outro\n\n## Credits\nTardy is sponsored, owned and maintained by [Yakka LLC](https://theyakka.com). Follow us on Twitter [@yakkallc](https://twitter.com/yakkallc). Feel free to reach out with suggestions, ideas or to say hey.\n\n### Security\n\nIf you believe you have identified a serious security vulnerability or issue with Tardy, please report it as soon as possible to apps@theyakka.com. Please refrain from posting it to the public issue tracker so that we have a chance to address it and notify everyone accordingly.\n\n## License\n\nTardy is released under a modified MIT license. See LICENSE for details.\n\n\u003chr/\u003e\nTardy is a Yakka original.\n\u003cp/\u003e\n\u003ca href=\"https://theyakka.com\" target=\"_yakka\"\u003e\n\u003cimg src=\"https://storage.googleapis.com/yakka-logos/logo_wordmark.png?1234\"\n  width=\"80\"\u003e\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheyakka%2Ftardy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheyakka%2Ftardy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheyakka%2Ftardy/lists"}