{"id":44685039,"url":"https://github.com/karantin2020/promptui","last_synced_at":"2026-02-15T05:34:02.306Z","repository":{"id":96581874,"uuid":"177479780","full_name":"karantin2020/promptui","owner":"karantin2020","description":"A golang library for building interactive prompts with support for windows and posix terminals","archived":false,"fork":false,"pushed_at":"2019-05-15T03:09:07.000Z","size":205,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T05:42:34.736Z","etag":null,"topics":["cli","command-line","go","golang","interactive","prompt","shell","unix","windows"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karantin2020.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-24T23:00:59.000Z","updated_at":"2022-05-21T21:48:31.000Z","dependencies_parsed_at":"2024-06-19T05:19:13.014Z","dependency_job_id":"27de909c-5a07-419f-864a-3aaf711d3e38","html_url":"https://github.com/karantin2020/promptui","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/karantin2020/promptui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karantin2020%2Fpromptui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karantin2020%2Fpromptui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karantin2020%2Fpromptui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karantin2020%2Fpromptui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karantin2020","download_url":"https://codeload.github.com/karantin2020/promptui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karantin2020%2Fpromptui/sbom","scorecard":{"id":550015,"data":{"date":"2025-08-11","repo":{"name":"github.com/karantin2020/promptui","commit":"46759f913ff9e367606a48e162f04b22a89475fd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T10:33:22.898Z","repository_id":96581874,"created_at":"2025-08-20T10:33:22.898Z","updated_at":"2025-08-20T10:33:22.898Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29470651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T05:26:30.465Z","status":"ssl_error","status_checked_at":"2026-02-15T05:26:21.858Z","response_time":118,"last_error":"SSL_read: 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","go","golang","interactive","prompt","shell","unix","windows"],"created_at":"2026-02-15T05:34:01.996Z","updated_at":"2026-02-15T05:34:02.294Z","avatar_url":"https://github.com/karantin2020.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PromptUI\n\n[![GoDoc](https://godoc.org/github.com/karantin2020/promptui?status.svg)](github.com/karantin2020/promptui) [![Go Report Card](https://goreportcard.com/badge/github.com/karantin2020/promptui)](https://goreportcard.com/report/github.com/karantin2020/promptui) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA library for building interactive prompts.\n\n\n![demo](https://github.com/karantin2020/promptui/raw/master/examples/screen.gif)\n\nSee `examples/main.go`.  \n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"strings\"\n\t\"unicode\"\n\n\tbb \"github.com/karantin2020/promptui\"\n)\n\nfunc main() {\n\tp := bb.Prompt{\n\t\tBasicPrompt: bb.BasicPrompt{\n\t\t\tLabel: \"test masked\",\n\t\t\tValidate: func(s string) error {\n\t\t\t\tif s == \"err\" {\n\t\t\t\t\treturn bb.NewValidationError(\"input must not be equal to 'err'\")\n\t\t\t\t}\n\t\t\t\tif s == \"\" {\n\t\t\t\t\treturn bb.NewValidationError(\"input must not be empty string\")\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t},\n\t\t\tDefault: \"hi there\",\n\t\t},\n\t\tMask: '*',\n\t\t// IsVimMode: false,\n\t}\n\tcheckError(p.Run())\n\tcheckError(bb.Ask(\"easy prompt\", \"Yepp\"))\n\tcheckError(bb.AskMasked(\"easy masked prompt\", \"Yepp\"))\n\tc := bb.ConfirmPrompt{\n\t\tBasicPrompt: bb.BasicPrompt{\n\t\t\tLabel:   \"test confirm\",\n\t\t\tDefault: \"y\",\n\t\t},\n\t\tConfirmOpt: \"?\",\n\t}\n\tcheckError(c.Run())\n\tcheckError(bb.Confirm(\"easy confirm\", \"Y\", false))\n\n\tml := bb.MultilinePrompt{\n\t\tBasicPrompt: bb.BasicPrompt{\n\t\t\tLabel:   \"test multiline\",\n\t\t\tDefault: \"Request\",\n\t\t\tFormatter: func(s string) string {\n\t\t\t\tvar upl = func(sl string) string {\n\t\t\t\t\trs := []rune(sl)\n\t\t\t\t\tif len(rs) \u003e 0 {\n\t\t\t\t\t\trs[0] = unicode.ToUpper(rs[0])\n\t\t\t\t\t}\n\t\t\t\t\treturn string(rs)\n\t\t\t\t}\n\t\t\t\tout := []string{}\n\t\t\t\tins := strings.Split(s, \"\\n\")\n\t\t\t\tfor i := range ins {\n\t\t\t\t\tout = append(out, upl(ins[i]))\n\t\t\t\t}\n\t\t\t\treturn strings.Join(out, \"\\n\")\n\t\t\t},\n\t\t\tValidate: func(s string) error {\n\t\t\t\tif s == \"Err\" {\n\t\t\t\t\treturn bb.NewValidationError(\"input must not be equal to 'err'\")\n\t\t\t\t}\n\t\t\t\tif s == \"\" {\n\t\t\t\t\treturn bb.NewValidationError(\"input must not be empty string\")\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t},\n\t\t},\n\t}\n\tcheckError(ml.Run())\n\tcheckError(bb.MultiLine(\"easy multi\", \"Ready to go\"))\n\n\ts := bb.Select{\n\t\tLabel:   \"test select\",\n\t\tItems:   []string{\"one\", \"two\", \"three\", \"1one\", \"1two\", \"1three\", \"2one\", \"2two\", \"2three\"},\n\t\tDefault: 3,\n\t}\n\t_, res, err := s.Run()\n\tcheckError(res, err)\n\tcheckError(bb.PromptAfterSelect(\"prompt after select\", []string{\"feat\", \"fix\", \"doc\", \"other\"}))\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarantin2020%2Fpromptui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarantin2020%2Fpromptui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarantin2020%2Fpromptui/lists"}