{"id":37163050,"url":"https://github.com/lukasmalkmus/interactive","last_synced_at":"2026-01-14T19:23:53.864Z","repository":{"id":57496637,"uuid":"79078046","full_name":"lukasmalkmus/interactive","owner":"lukasmalkmus","description":"Simple and easy interactive commandline applications.","archived":true,"fork":false,"pushed_at":"2017-09-14T12:50:12.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T06:05:11.589Z","etag":null,"topics":["go","golang","golang-library","shell","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukasmalkmus.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":"2017-01-16T03:08:43.000Z","updated_at":"2023-01-28T14:54:36.000Z","dependencies_parsed_at":"2022-08-28T20:20:38.185Z","dependency_job_id":null,"html_url":"https://github.com/lukasmalkmus/interactive","commit_stats":null,"previous_names":["lukasma/interactive"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lukasmalkmus/interactive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasmalkmus%2Finteractive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasmalkmus%2Finteractive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasmalkmus%2Finteractive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasmalkmus%2Finteractive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukasmalkmus","download_url":"https://codeload.github.com/lukasmalkmus/interactive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasmalkmus%2Finteractive/sbom","scorecard":{"id":604023,"data":{"date":"2025-08-11","repo":{"name":"github.com/lukasmalkmus/interactive","commit":"fe07ab67aec6055f89a5c3bb9d86f241d0856366"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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-21T01:10:18.934Z","repository_id":57496637,"created_at":"2025-08-21T01:10:18.934Z","updated_at":"2025-08-21T01:10:18.934Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["go","golang","golang-library","shell","terminal"],"created_at":"2026-01-14T19:23:53.151Z","updated_at":"2026-01-14T19:23:53.844Z","avatar_url":"https://github.com/lukasmalkmus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lukasmalkmus/interactive\n\u003e Simple and easy interactive commandline applications. - by **[Lukas Malkmus](https://github.com/lukasmalkmus)**\n\n[![Travis Status][travis_badge]][travis]\n[![Coverage Status][coverage_badge]][coverage]\n[![Go Report][report_badge]][report]\n[![GoDoc][docs_badge]][docs]\n[![Latest Release][release_badge]][release]\n[![License][license_badge]][license]\n\n---\n\n## Table of Contents\n1. [Introduction](#introduction)\n2. [Usage](#usage)\n3. [Contributing](#contributing)\n4. [License](#license)\n\n### Introduction\nThis package is build on top of the excellent `golang.org/x/crypto/ssh/terminal`\npackage and tries to simplify the creation of small and simple applications\nwhich run in shell mode.\nIt isn't very powerful (yet) but has enough features for basic usage. For\nexample it shuts down gracefully on Ctrl^C and Ctrl^D.\n\n#### Todo\n  - [ ] Tests!\n\n### Usage\n#### Installation\nPlease use a dependency manager like [glide](http://glide.sh) to make sure you\nuse a tagged release.\n\nInstall using `go get`:\n```bash\ngo get -u github.com/lukasmalkmus/interactive\n```\n\n#### Minimum setup\nA more complete example can be found [here](examples/usage.go).\n\nThis small application echos the entered text:\n```go\ns := interactive.New(\"\u003e\")\ns.Action = func(c *interactive.Context) error {\n    text, _ := c.Scan()\n    c.Println(text)\n    return nil\n}\ns.Run()\n```\nReturning an error instead of nil will print the error. Calling `context.Close()`\nwill close the session with the specified exit code.\n\n### Contributing\nFeel free to submit PRs or to fill Issues. Every kind of help is appreciated.\n\n### License\n© Lukas Malkmus, 2017\n\nDistributed under MIT License (`The MIT License`).\n\nSee [LICENSE](LICENSE) for more information.\n\n\n[travis]: https://travis-ci.org/lukasmalkmus/interactive\n[travis_badge]: https://travis-ci.org/lukasmalkmus/interactive.svg\n[coverage]: https://coveralls.io/github/lukasmalkmus/interactive?branch=master\n[coverage_badge]: https://coveralls.io/repos/github/lukasmalkmus/interactive/badge.svg?branch=master\n[report]: https://goreportcard.com/report/github.com/lukasmalkmus/interactive\n[report_badge]: https://goreportcard.com/badge/github.com/lukasmalkmus/interactive\n[docs]: https://godoc.org/github.com/lukasmalkmus/interactive\n[docs_badge]: https://godoc.org/github.com/lukasmalkmus/interactive?status.svg\n[release]: https://github.com/lukasmalkmus/interactive/releases\n[release_badge]: https://img.shields.io/github/release/lukasmalkmus/interactive.svg\n[license]: https://opensource.org/licenses/MIT\n[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasmalkmus%2Finteractive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukasmalkmus%2Finteractive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasmalkmus%2Finteractive/lists"}