{"id":21648087,"url":"https://github.com/markelog/list","last_synced_at":"2025-10-17T14:07:02.175Z","repository":{"id":10344801,"uuid":"65434173","full_name":"markelog/list","owner":"markelog","description":"Terminal interactive list","archived":false,"fork":false,"pushed_at":"2023-09-28T13:55:41.000Z","size":91,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T23:30:32.947Z","etag":null,"topics":["cli","console","go","golang","interactive","list","terminal","view"],"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/markelog.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}},"created_at":"2016-08-11T03:08:29.000Z","updated_at":"2023-09-28T13:55:45.000Z","dependencies_parsed_at":"2025-04-12T13:47:10.713Z","dependency_job_id":null,"html_url":"https://github.com/markelog/list","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markelog/list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Flist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Flist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Flist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Flist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markelog","download_url":"https://codeload.github.com/markelog/list/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markelog%2Flist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273983043,"owners_count":25202092,"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-09-06T02:00:13.247Z","response_time":2576,"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":["cli","console","go","golang","interactive","list","terminal","view"],"created_at":"2024-11-25T06:53:20.725Z","updated_at":"2025-10-17T14:06:57.123Z","avatar_url":"https://github.com/markelog.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# List [![Build Status](https://travis-ci.org/markelog/list.svg)](https://travis-ci.org/markelog/list) [![GoDoc](https://godoc.org/github.com/markelog/list?status.svg)](https://godoc.org/github.com/markelog/list) [![Go Report Card](https://goreportcard.com/badge/github.com/markelog/list)](https://goreportcard.com/report/github.com/markelog/list)\n\n\u003e Terminal interactive list\n\nThis\n\n```go\noptions := []string{\"Gangsta panda\", \"Sexy turtle\", \"Killa gorilla\",}\n\n// returns user choice i.e. \"Gangsta panda\"\nlist.GetWith(\"Which animal is the coolest?\", options)\n```\n\nWill get you\n\n![](./example.gif)\n\n## A bit of flexibility\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/fatih/color\"\n\t\"github.com/markelog/list\"\n)\n\noptions := []string{\"Gangsta panda\", \"Sexy turtle\", \"Killa gorilla\",}\n\nl := list.New(\"Which animal is the coolest?\", options)\n\n// Set your own printer\nl.SetPrint(func(args ...interface{}) (n int, err error) {\n\treturn fmt.Print(args...)\n})\n\n// Set your own colors\n// With github.com/fatih/color package\nl.SetColors(\u0026list.Colors{\n\tHead:      color.New(color.BgRed),\n\tOption:    color.New(color.FgGreen, color.Underline),\n\tHighlight: color.New(color.FgCyan, color.Bold),\n})\n\n// Show the list\nl.Show()\n\n// Waiting for the user input\nl.Get()\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkelog%2Flist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkelog%2Flist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkelog%2Flist/lists"}