{"id":22378295,"url":"https://github.com/reeflective/console","last_synced_at":"2026-03-10T16:12:05.678Z","repository":{"id":57574875,"uuid":"354418417","full_name":"reeflective/console","owner":"reeflective","description":"Closed-loop application library for Cobra commands  (powerful, ready-to-run and easy to use)","archived":false,"fork":false,"pushed_at":"2026-01-15T22:00:04.000Z","size":24134,"stargazers_count":100,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-16T01:01:08.321Z","etag":null,"topics":["cli","cobra","command-line","console","console-application","go","golang","history","menus","oh-my-posh"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reeflective.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-03T23:52:58.000Z","updated_at":"2026-01-15T21:58:50.000Z","dependencies_parsed_at":"2023-12-05T09:30:37.286Z","dependency_job_id":"2907810f-5a39-4d99-a11c-86e33471a822","html_url":"https://github.com/reeflective/console","commit_stats":null,"previous_names":["maxlandon/gonsole"],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/reeflective/console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reeflective%2Fconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reeflective%2Fconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reeflective%2Fconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reeflective%2Fconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reeflective","download_url":"https://codeload.github.com/reeflective/console/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reeflective%2Fconsole/sbom","scorecard":{"id":629641,"data":{"date":"2025-08-11","repo":{"name":"github.com/reeflective/console","commit":"4d38cb43e669ac33e92d102ce158593f259505d9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"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":"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":"Code-Review","score":1,"reason":"Found 1/10 approved changesets -- score normalized to 1","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":"Maintained","score":3,"reason":"3 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codacy.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/codacy.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codacy.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/codacy.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/codeql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/codeql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/codeql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/codeql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency-review.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/dependency-review.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency-review.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/dependency-review.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/label.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/reeflective/console/label.yml/main?enable=pin","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 third-party GitHubAction dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/codacy.yml:31","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codacy.yml:33","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:29","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/label.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/codacy.yml:26","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:11","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/label.yml:1","Info: no jobLevel write permissions found"],"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":"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: Apache License 2.0: 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"}},{"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":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T07:28:26.642Z","repository_id":57574875,"created_at":"2025-08-21T07:28:26.642Z","updated_at":"2025-08-21T07:28:26.642Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30342161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"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","cobra","command-line","console","console-application","go","golang","history","menus","oh-my-posh"],"created_at":"2024-12-04T23:00:52.061Z","updated_at":"2026-03-10T16:12:05.670Z","avatar_url":"https://github.com/reeflective.png","language":"Go","readme":"\n\u003cdiv align=\"center\"\u003e\n  \u003cbr\u003e \u003ch1\u003e Console \u003c/h1\u003e\n\n  \u003cp\u003e  Closed-loop application library for Cobra commands  \u003c/p\u003e\n  \u003cp\u003e  (ready-to-use menus, prompts, completions, and more)  \u003c/p\u003e\n\u003c/div\u003e\n\n\n\u003c!-- Badges --\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/reeflective/console/actions/workflows/go.yml\"\u003e\n    \u003cimg src=\"https://github.com/reeflective/console/actions/workflows/go.yml/badge.svg?branch=main\"\n      alt=\"Github Actions (workflows)\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://github.com/reeflective/console\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/go-mod/go-version/reeflective/console.svg\"\n      alt=\"Go module version\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://pkg.go.dev/github.com/reeflective/console\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/godoc-reference-blue.svg\"\n      alt=\"GoDoc reference\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://goreportcard.com/report/github.com/reeflective/console\"\u003e\n    \u003cimg src=\"https://goreportcard.com/badge/github.com/reeflective/console\"\n      alt=\"Go Report Card\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://codecov.io/gh/reeflective/console\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/reeflective/console/branch/main/graph/badge.svg\"\n      alt=\"codecov\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://opensource.org/licenses/BSD-3-Clause\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-BSD_3--Clause-blue.svg\"\n      alt=\"License: BSD-3\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nConsole is an all-in-one console application library built on top of a [readline](https://github.com/reeflective/readline) shell and using [Cobra](https://github.com/spf13/cobra) commands.\nIt aims to provide users with a modern interface at at minimal cost while allowing them to focus on developing\ntheir commands and application core: the console will then transparently interface with these commands, and provide\nthe various features below almost for free.\n\n\n## Features\n\n### Menus \u0026 Commands\n- Bind cobra commands to provide the core functionality.\n- Multiple menus with their own command tree, prompt engines and special handlers.\n- All cobra settings can be modified, set and used freely, like in normal CLI workflows.\n- Bind handlers to special interrupt errors (eg. `CtrlC`/`CtrlD`), per menu.\n\n### Shell interface\n- Shell is powered by a [readline](https://github.com/reeflective/readline) instance, with full `inputrc` support and extended functionality.\n- All features of readline are supported in the console. It also allows the console to give:\n- Configurable bind keymaps, commands and options, sane defaults, and per-application configuration.\n- Out-of-the-box, advanced completions for commands, flags, positional and flag arguments.\n- Provided by readline and [carapace](https://github.com/carapace-sh/carapace): automatic usage \u0026 validation command/flags/args hints.\n- Syntax highlighting for commands (might be extended in the future).\n\n### Others\n- Support for an arbitrary number of history sources, per menu.\n- Support for [oh-my-posh](https://github.com/JanDeDobbeleer/oh-my-posh) prompts, per menu and with custom configuration files for each.\n- Also with oh-my-posh, write and bind application/menu-specific prompt segments.\n- Set of ready-to-use commands (`commands/` directory) for readline binds/options manipulation.\n\n\n## Documentation\n\nYou can install and use the [example application console](https://github.com/reeflective/console/tree/main/example). This example application\nwill give you a taste of the behavior and supported features. The following documentation\nis also available in the [wiki](https://github.com/reeflective/console/wiki):\n\n* [Getting started](https://github.com/reeflective/console/wiki/Getting-Started)\n* [Menus](https://github.com/reeflective/console/wiki/Menus)\n* [Prompts](https://github.com/reeflective/console/wiki/Prompts)\n* [Binding commands](https://github.com/reeflective/console/wiki/Binding-Commands)\n* [Interrupt handlers](https://github.com/reeflective/console/wiki/Interrupt-Handlers)\n* [History Sources](https://github.com/reeflective/console/wiki/History-Sources)\n* [Logging](https://github.com/reeflective/console/wiki/Logging)\n* [Readline shell](https://github.com/reeflective/readline/wiki)\n* [Other utilities](https://github.com/reeflective/console/wiki/Other-Utililites)\n\n\n## Showcase\n![console](https://github.com/reeflective/console/blob/assets/console.gif)\n\n\n## Status\n\nThe library is in a pre-release candidate status:\n- Although quite simple and small, it has not been tested heavily.\n- There are probably some features/improvements to be made.\n- The API is quite stable. It is unlikely to change much in future versions.\n\nPlease open a PR or an issue if you wish to bring enhancements to it.\nOther contributions, as well as bug fixes and reviews are also welcome.\n","funding_links":[],"categories":["Recently Updated","Command Line","Build Automation","命令行"],"sub_categories":["[Dec 04, 2024](/content/2024/12/04/README.md)","Standard CLI","标准CLI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freeflective%2Fconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freeflective%2Fconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freeflective%2Fconsole/lists"}