{"id":22787406,"url":"https://github.com/aserto-dev/clui","last_synced_at":"2025-10-26T14:35:55.564Z","repository":{"id":42570566,"uuid":"338903973","full_name":"aserto-dev/clui","owner":"aserto-dev","description":"Command Line User Interface","archived":false,"fork":false,"pushed_at":"2023-11-27T18:23:45.000Z","size":144,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T05:03:08.419Z","etag":null,"topics":[],"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/aserto-dev.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":"2021-02-14T21:17:59.000Z","updated_at":"2021-12-20T17:53:39.000Z","dependencies_parsed_at":"2025-02-05T17:37:12.584Z","dependency_job_id":"7dcbae49-281b-4ce4-88c7-9f4bd8e1fc51","html_url":"https://github.com/aserto-dev/clui","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fclui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fclui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fclui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fclui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aserto-dev","download_url":"https://codeload.github.com/aserto-dev/clui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246342993,"owners_count":20761947,"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","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":[],"created_at":"2024-12-12T00:57:00.872Z","updated_at":"2025-10-26T14:35:55.487Z","avatar_url":"https://github.com/aserto-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clui\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/aserto-dev/clui.svg)](https://pkg.go.dev/github.com/aserto-dev/clui)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aserto-dev/clui)](https://goreportcard.com/report/github.com/aserto-dev/clui)\n\nCommand Line User Interface library for building user interfaces that interact with humans.\nYou can find a more comprehensive example [here](https://github.com/aserto-dev/clui/tree/main/example).\n\n- [clui](#clui)\n  - [Usage](#usage)\n    - [Printing messages](#printing-messages)\n    - [Asking for input](#asking-for-input)\n    - [Spinner progress](#spinner-progress)\n    - [Tables](#tables)\n\n\n![demo](./demo.gif)\n\n## Usage\n\n### Printing messages\n\n```go\nui := clui.NewUI()\nui.Normal().Msg(\"The quick brown fox jumps over the lazy dog!\")\n```\n\n### Asking for input\n\n```go\nui := clui.NewUI()\n\nvar stringResult string\nui.Normal().\n  WithAskString(\"What's your name?\", \u0026stringResult).\n  Do()\n```\n\n\n### Spinner progress\n\n```go\nui := clui.NewUI()\np := ui.Progress(\"Doing something in the background\")\np.Start()\ndefer p.Stop()\ntime.Sleep(5 * time.Second)\n```\n\n### Tables\n\n```go\nui := clui.NewUI()\nui.Normal().WithTable(\"#\", \"Name\", \"Age\", \"Link\").\n  WithTableRow(\"1\", \"Stephen J. Fry\", \"20\", \"https://aserto.com\").Do()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fclui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faserto-dev%2Fclui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fclui/lists"}