{"id":13468472,"url":"https://github.com/jesusprubio/leg","last_synced_at":"2025-12-30T05:24:59.956Z","repository":{"id":55110494,"uuid":"188599235","full_name":"jesusprubio/leg","owner":"jesusprubio","description":"🔈 Nicer CLIs foz lazy devs","archived":true,"fork":false,"pushed_at":"2024-03-18T20:35:20.000Z","size":23,"stargazers_count":199,"open_issues_count":2,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-28T09:09:34.191Z","etag":null,"topics":["cli","elegant","golang","logger","nice","print"],"latest_commit_sha":null,"homepage":"","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/jesusprubio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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-25T18:20:43.000Z","updated_at":"2025-02-17T02:38:08.000Z","dependencies_parsed_at":"2024-03-18T21:54:59.933Z","dependency_job_id":null,"html_url":"https://github.com/jesusprubio/leg","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"37996e49b50aea9489c6df08be23b7b1733fe609"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusprubio%2Fleg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusprubio%2Fleg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusprubio%2Fleg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusprubio%2Fleg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jesusprubio","download_url":"https://codeload.github.com/jesusprubio/leg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245597240,"owners_count":20641861,"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":["cli","elegant","golang","logger","nice","print"],"created_at":"2024-07-31T15:01:11.724Z","updated_at":"2025-12-12T14:47:05.203Z","avatar_url":"https://github.com/jesusprubio.png","language":"Go","funding_links":[],"categories":["Libraries","Go","库 Libraries"],"sub_categories":["Logging","日志记录 Logging"],"readme":"# leg\n\n**Archived**, now just using [slog](https://go.dev/blog/slog).\n\n***\n\n\u003cimg\n  width=\"344\" alt=\"Screenshot 2023-03-06 at 14 18 25\"\n  src=\"https://user-images.githubusercontent.com/2753855/223247609-2ab48185-b26f-4763-ba33-ecc9bdc6f07a.png\"\u003e\n\n[![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci]\n\nTiny wrapper to beauty command line application prototypes with a minimal effort.\n\n- Prints to `stderr`.\n- Thanks to [color](https://github.com/fatih/color) library:\n  - Cross platform.\n  - Respects [NO_COLOR](https://no-color.org).\n\n## Install\n\n```sg\ngo get -u github.com/jesusprubio/leg\n```\n\n### Dependencies\n\n- [Go](https://go.dev/doc/install) stable version.\n\n## Use\n\nVisit the [tests](leg_test.go) to check more details.\n\n```golang\nleg.Head(\"mumu\", \"🐘\", \"0.1.0\")\nleg.Info(\"Informational message\", \"\")\nleg.Success(\"Successful operation\", \"\")\nleg.Warn(\"Warn message\", \"\")\nleg.Error(\"Error message\", \"\")\nleg.Wait(\"Waiting for something\", \"\")\nleg.Done(\"Something finished\", \"\")\n\nleg.Info(\"Informational message with scope\", \"scope-0\")\n\nfmt.Print(\"deleted line\")\nleg.Remove()\n\nleg.Result(\"To standard output\")\n```\n\n[doc-img]: https://pkg.go.dev/badge/github.com/jesusprubio/leg\n[doc]: https://pkg.go.dev/github.com/jesusprubio/leg\n[ci-img]: https://github.com/jesusprubio/leg/workflows/CI/badge.svg\n[ci]: https://github.com/jesusprubio/leg/workflows/go.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesusprubio%2Fleg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesusprubio%2Fleg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesusprubio%2Fleg/lists"}