{"id":17316984,"url":"https://github.com/pcj/mobyprogress","last_synced_at":"2025-03-27T02:18:04.385Z","repository":{"id":63250329,"uuid":"565547611","full_name":"pcj/mobyprogress","owner":"pcj","description":"The progress bar from the docker/moby project, repackaged as a standalone library","archived":false,"fork":false,"pushed_at":"2022-11-14T20:33:23.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T07:41:22.509Z","etag":null,"topics":[],"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/pcj.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":"2022-11-13T18:47:37.000Z","updated_at":"2022-11-14T20:26:37.000Z","dependencies_parsed_at":"2022-11-15T19:15:27.372Z","dependency_job_id":null,"html_url":"https://github.com/pcj/mobyprogress","commit_stats":null,"previous_names":["pcj/moprogress"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcj%2Fmobyprogress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcj%2Fmobyprogress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcj%2Fmobyprogress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcj%2Fmobyprogress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcj","download_url":"https://codeload.github.com/pcj/mobyprogress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245767361,"owners_count":20668827,"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-10-15T13:15:04.338Z","updated_at":"2025-03-27T02:18:04.362Z","avatar_url":"https://github.com/pcj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mobyprogress\n\n[![ci](https://github.com/pcj/mobyprogress/actions/workflows/ci.yaml/badge.svg?branch=master\u0026event=push)](https://github.com/pcj/mobyprogress/actions/workflows/ci.yaml)\n[![godoc](https://godoc.org/github.com/pcj/mobyprogress?status.svg)](https://godoc.org/github.com/pcj/mobyprogress)\n\nThe progress bar from the docker/moby project, repackaged  as a standalone library.\n\nHave you ever wanted a progress bar for your golang-based CLI tool only to find that \nthe library either does not work on all platforms or does not have multibar support?  \nMe too!  I've always liked the `docker` cli progress bar so I went ahead and broke\nit out into it's own library.\n\nNote that since I am not the original author of this code I won't accept new features;\nthis code is considered \"complete\".\n\n# Installation\n\n```\ngo get github.com/pcj/mobyprogress@latest\n```\n\n# Usage\n\nCreate a `mobyprogess.Output` instance over an `io.Writer`:\n\n```go\nout := mobyprogress.NewOut(os.Stdout)\n\nprogress := mobyprogress.NewProgressOutput(out)\n```\n\nThen, send progress updates to the output:\n\n```go\nprogress.WriteProgress(progress.Progress{\n    ID:      \"some.tar.gz\",\n    Action:  \"downloading\",\n    Total:   int64(bytesTotal),\n    Current: int64(bytesSent),\n    Units:   \"bytes\",\n})\n```\n\nThe `progress.ID` field is used as the key to identify the progress bar to update. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcj%2Fmobyprogress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcj%2Fmobyprogress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcj%2Fmobyprogress/lists"}