{"id":15661934,"url":"https://github.com/liamg/clinch","last_synced_at":"2025-10-23T17:16:47.536Z","repository":{"id":35134834,"uuid":"184384842","full_name":"liamg/clinch","owner":"liamg","description":"Go CLI toolkit :hammer:","archived":false,"fork":false,"pushed_at":"2023-12-18T23:02:17.000Z","size":6355,"stargazers_count":19,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T19:52:22.004Z","etag":null,"topics":["cli","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liamg.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}},"created_at":"2019-05-01T07:47:53.000Z","updated_at":"2024-02-25T21:27:28.000Z","dependencies_parsed_at":"2022-07-08T13:31:16.726Z","dependency_job_id":"c3b075a4-e9d0-4238-bc4d-77f16fadf760","html_url":"https://github.com/liamg/clinch","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/liamg/clinch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fclinch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fclinch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fclinch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fclinch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liamg","download_url":"https://codeload.github.com/liamg/clinch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liamg%2Fclinch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448222,"owners_count":24251999,"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-08-02T02:00:12.353Z","response_time":74,"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","terminal"],"created_at":"2024-10-03T13:29:35.757Z","updated_at":"2025-10-23T17:16:42.492Z","avatar_url":"https://github.com/liamg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clinch\n\n[![Build Status](https://travis-ci.org/liamg/clinch.svg \"Travis CI status\")](https://travis-ci.org/liamg/clinch)\n[![GoDoc](https://godoc.org/github.com/liamg/clinch?status.svg)](https://godoc.org/github.com/liamg/clinch)\n\nA Go module to make interactive CLI applications easier to develop, better looking and visually consistent.\n\n![Demo gif](demo.gif)\n\nA full list of included packages and how to use them is below.\n\nFor information about using coloured text within clinch, please see the [tml](https://github.com/liamg/tml) package.\n\n\n## Packages\n\n### Logging progress of sequential tasks with `task`\n\nTasks are single jobs from the users perspective. For example, in the following output:\n\n```\nRunning test #1...\nRunning test #2...\nDeploying code...\n```\n\n...each log line represents a single _task_. Tasks in clinch allow you to beautify these log lines slightly, by showing the status/outcome of each task, and even animate the status while the task is still running. For example:\n\n![Tasks demo](tasks.gif)\n\nFull example [here](_examples/task/main.go).\n\n### Prompting for input with `prompt`\n\nThe `prompt` package provides various methods of gathering user input.\n\n![List prompt demo](list.gif)\n\nFull examples are available in [_examples/prompt](_examples/prompt):\n\n- [Text input](_examples/prompt/input/main.go)\n- [Password input](_examples/prompt/password/main.go)\n- [Selection from a list](_examples/prompt/list/main.go)\n- [Multi Selection from a list](_examples/prompt/multiSelectList/main.go) [(mutli list in action)](multilist.gif)\n\n### More granular control with `terminal`\n\nThe `terminal` package allows for more granular control of the terminal. For example, you can use it to show/hide the cursor, get the terminal size, clear the terminal, position the cursor and some other basics.\n\n### Loading bars with `loading`\n\nThe `loading` package allows for the rendering of animated loading bars, with the additional capability of logging messages to the terminal without disrupting the bar.\n\n![Loading bar demo](loading.gif)\n\nFull example [here](_examples/loading/bar/main.go).\n\n### Output coloured/formatted text\n\nYou can output coloured and formatted text to the terminal with the external [tml](https://github.com/liamg/tml) module.\n\n## Visual Guidelines\n\n### Colour Usage\n\n- Successful actions are reported in green.\n- Warnings are reported in yellow.\n- Errors/failures are reported in red.\n- Items requiring a user action are reported in blue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Fclinch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliamg%2Fclinch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamg%2Fclinch/lists"}