{"id":16844560,"url":"https://github.com/jedib0t/go-prompter","last_synced_at":"2026-03-03T18:32:22.572Z","repository":{"id":196656205,"uuid":"696929644","full_name":"jedib0t/go-prompter","owner":"jedib0t","description":"Build full-featured CLI prompts in GoLang.","archived":false,"fork":false,"pushed_at":"2023-10-31T02:58:52.000Z","size":1900,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T15:44:47.316Z","etag":null,"topics":["cli","command-line-interface","golang","prompt","prompter","terminal"],"latest_commit_sha":null,"homepage":"","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/jedib0t.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-26T17:48:36.000Z","updated_at":"2025-01-17T22:24:52.000Z","dependencies_parsed_at":"2023-09-29T02:02:59.454Z","dependency_job_id":"22760403-a0b6-41cd-9a8d-8891f46111ef","html_url":"https://github.com/jedib0t/go-prompter","commit_stats":null,"previous_names":["jedib0t/go-prompter"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jedib0t/go-prompter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-prompter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-prompter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-prompter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-prompter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedib0t","download_url":"https://codeload.github.com/jedib0t/go-prompter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-prompter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cli","command-line-interface","golang","prompt","prompter","terminal"],"created_at":"2024-10-13T12:55:56.947Z","updated_at":"2026-03-03T18:32:22.550Z","avatar_url":"https://github.com/jedib0t.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-prompter\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/jedib0t/go-prompter.svg)](https://pkg.go.dev/github.com/jedib0t/go-prompter)\n![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)\n[![Build Status](https://github.com/jedib0t/go-prompter/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jedib0t/go-prompter/actions?query=workflow%3ACI+event%3Apush+branch%3Amain)\n[![Coverage Status](https://coveralls.io/repos/github/jedib0t/go-prompter/badge.svg?branch=main)](https://coveralls.io/github/jedib0t/go-prompter?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jedib0t/go-prompter)](https://goreportcard.com/report/github.com/jedib0t/go-prompter)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=jedib0t_go-prompter\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=jedib0t_go-prompter)\n\nBuild full-featured CLI prompts in GoLang.\n\nDemo of a SQL Prompt with the major features in play:\n\n\u003cimg src=\"examples/prompt/sql/demo.gif\" alt=\"Demo\"/\u003e\n\n## Features\n\n* Single-line and Multi-line prompt with line numbers\n* [Syntax-Highlighting](prompt/syntax_highlighter.go) - use [Chroma](https://github.com/alecthomas/chroma) or roll-your-own\n* Flexible [Auto-Complete](prompt/auto_completer.go) drop-downs\n  * Start with built-in `AutoCompleter` for simple Keywords `SetAutoCompleter(...)`\n  * Expand to context based additional Keywords using `SetAutoCompleterContextual(...)`\n* Generate prompts with or without a \"prefix\"\n* Header and Footer generator functions for dynamic content\n* History integration with built-in go-back/go-forward/list/re-run\n* Completely customizable [KeyMap](prompt/key_map.go)\n  * Well-defined Actions that can be mapped to Key-Sequences\n* Custom command-shortcuts for Key-Sequences\n* Flexible [Styling/Customization](prompt/style.go) to change the look and feel of\n  * Auto-Complete Drop-down\n  * Cursor\n  * Dimensions (height/width)\n  * Line-Numbers\n  * Scrollbar\n\n## Bonus\n\n* [Input](input) package that wraps around the [Bubble Tea](https://github.com/charmbracelet/bubbletea)\n  library and provides a basic interface to capture input events\n  * Key-presses\n  * Mouse-clicks and motion\n  * Window/terminal resizes\n* [Powerline](powerline) package to generate Powerline-like lines\n  * Supports \"segments\" on both left and right sides\n  * Auto-adjust and auto-remove segments to meet terminal width limitations\n  * Usable as header and/or prefix for the Prompt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedib0t%2Fgo-prompter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedib0t%2Fgo-prompter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedib0t%2Fgo-prompter/lists"}