{"id":29788120,"url":"https://github.com/mazzy-ax/write-progressex","last_synced_at":"2025-07-27T20:12:07.540Z","repository":{"id":143639504,"uuid":"97982521","full_name":"mazzy-ax/Write-ProgressEx","owner":"mazzy-ax","description":"Write-ProgressEx is a powershell advanced function that extends the Write-Progress cmdlet.","archived":false,"fork":false,"pushed_at":"2020-04-26T17:37:14.000Z","size":184,"stargazers_count":33,"open_issues_count":12,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T02:05:24.352Z","etag":null,"topics":["powershell","progressbar"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/mazzy-ax.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-07-21T20:02:37.000Z","updated_at":"2025-05-27T02:17:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b30418f-0d94-4a06-8d09-506d71844242","html_url":"https://github.com/mazzy-ax/Write-ProgressEx","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/mazzy-ax/Write-ProgressEx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzy-ax%2FWrite-ProgressEx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzy-ax%2FWrite-ProgressEx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzy-ax%2FWrite-ProgressEx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzy-ax%2FWrite-ProgressEx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazzy-ax","download_url":"https://codeload.github.com/mazzy-ax/Write-ProgressEx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzy-ax%2FWrite-ProgressEx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267417664,"owners_count":24083839,"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-07-27T02:00:11.917Z","response_time":82,"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":["powershell","progressbar"],"created_at":"2025-07-27T20:11:55.015Z","updated_at":"2025-07-27T20:12:07.517Z","avatar_url":"https://github.com/mazzy-ax.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Write-ProgressEx \u0026ndash; extended write-progress cmdlet\n\n[project]:https://github.com/mazzy-ax/Write-ProgressEx\n[license]:https://github.com/mazzy-ax/Write-ProgressEx/blob/master/LICENSE\n[ps]:https://www.powershellgallery.com/packages/Write-ProgressEx\n[nuget]:https://www.nuget.org/packages/Write-ProgressEx\n[appveyor]:https://ci.appveyor.com/project/mazzy-ax/write-progressex\n\n[![Build status](https://ci.appveyor.com/api/projects/status/5r91g2yxk74a46mi?svg=true)][appveyor]\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/Write-ProgressEx.svg)][ps]\n[![NuGet](https://buildstats.info/nuget/Write-ProgressEx)][nuget]\n\u003cimg src=\"https://raw.githubusercontent.com/mazzy-ax/Write-ProgressEx/master/Media/Write-ProgressEx-icon.png\" align=\"right\" alt=\"Write-ProgressEx icon\"\u003e\n\n[Write-ProgressEx][project] extends the functionality of the standard powershell cmdlet. Write-ProgressEx is a powershell advanced function that provides a simple way to show ProgressBars with PercentComplete and SecondsRemaining.\n\nThe cmdlet:\n\n* works with pipe;\n* works with empty activity string;\n* completes all inner progresses if no parameters;\n* automatically completes with pipe;\n* automatically calculates percents, remaining seconds and elapsed time;\n* automatically displays current iteration and totals on progress bar;\n* automatically displays info with a progress bar and at the console title;\n* automatically set parent id for a inner loop;\n* stores totals, current values and actual parameters into the module hashtable;\n* provides get/set cmdlets to access actual parameters;\n* uses script blocks to show messages with date, time, iterations and elapsed time on events:\n  * first iteration;\n  * activity changed;\n  * status changed;\n  * completed.\n* provides a counter functional. See [Write-ProgressEx as a counter](Examples/Write-ProgressEx.counter.ps1);\n* uses the caller function name or the caller script file name as the Activity;\n* accepts `-ShowProgressBar Auto` parameter to reduce the overhead for redrawing a screen. It recognizes `None` and `Force` values also.\n\nNote: the function is not safe with multi-thread.\n\n## Examples\n\nA pipe and a simple loop:\n\n```powershell\n$range1 = 1..20\n$range1 | Write-ProgressEx \"loop 1\" -Total $range1.Count -ShowMessages | ForEach-Object {\n    # ....\n}\n\n$range2 = 1..15\n$range2 | ForEach-Object {\n    # ....\n    Write-ProgressEx \"loop 2\" -Total $range2.Count -Increment\n}\n\nWrite-ProgressEx #close all progress bars\n```\n\nPipes in nested loops:\n\n```powershell\n$outer = 1..20\n$inner = 1..50\n\n$outer | Write-ProgressEx \"pipe nodes\" -Status \"outer\" -Total $outer.Count -ShowMessages | ForEach-Object {\n    $inner | Write-ProgressEx \"pipe names\" -id 1 -Status \"inner\" -Total $inner.Count | ForEach-Object {\n        # ....\n    }\n}\n```\n\n![screenshot: Write-ProgressEx](Media/examples.pipe.png)\n\n![screenshot: Result messages](Media/examples.messages.png)\n\nA long time command:\n\n```powershell\n$path = $env:homepath\n$files = Get-ChildItem $path -Recurse | Write-ProgressEx $path\n```\n\nMore samples are in the folder [Examples](Examples).\n\n## Installation\n\nAutomatic install Write-ProgressEx module from the [PowerShell Gallery][ps]:\n\n```powershell\nInstall-Module -Name Write-ProgressEx\nImport-Module Write-ProgressEx\n```\n\nAutomatic install Write-ProgressEx module from the [NuGet.org][nuget]:\n\n```powershell\nInstall-Package -Name Write-ProgressEx\nImport-Module Write-ProgressEx\n```\n\nor manual:\n\n* Download and unblock the latest .zip file.\n* Extract the .zip into your `$PSModulePath`, e.g. `~\\Documents\\WindowsPowerShell\\Modules`.\n* Ensure the extracted folder is named `Write-ProgressEx`.\n* Set an execution policy to `RemoteSigned` or `Unrestricted` to execute not signed modules `Set-ExecutionPolicy RemoteSigned`.\n* Run `Import-Module Write-ProgressEx`.\n\n## Known issues\n\n* Unable to import module on case-sensitive file systems. Thanks @jasonchester for the [workaround](https://github.com/mazzy-ax/Write-ProgressEx/issues/5)\n\n## Changelog\n\n* [CHANGELOG.md](CHANGELOG.md)\n* \u003chttps://github.com/mazzy-ax/Write-ProgressEx/releases\u003e.\n\n## License\n\nThis project is released under the [licensed under the MIT License][license].\n\nmazzy@mazzy.ru","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazzy-ax%2Fwrite-progressex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazzy-ax%2Fwrite-progressex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazzy-ax%2Fwrite-progressex/lists"}