{"id":18578898,"url":"https://github.com/libre-devops/powershell-helpers","last_synced_at":"2025-07-10T11:10:26.251Z","repository":{"id":229232173,"uuid":"776094388","full_name":"libre-devops/powershell-helpers","owner":"libre-devops","description":"The home of the Libre DevOps PowerShell utilities module/library","archived":false,"fork":false,"pushed_at":"2024-03-24T01:03:15.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-30T15:44:26.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/libre-devops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-03-22T17:08:52.000Z","updated_at":"2024-03-22T21:28:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ce2faf8-99f6-4bbd-8814-f673b0b1a7b7","html_url":"https://github.com/libre-devops/powershell-helpers","commit_stats":null,"previous_names":["libre-devops/powershell-utilities-module"],"tags_count":1,"template":false,"template_full_name":"libre-devops/terraform-module-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fpowershell-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fpowershell-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fpowershell-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fpowershell-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libre-devops","download_url":"https://codeload.github.com/libre-devops/powershell-helpers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453625,"owners_count":22073618,"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-11-06T23:38:11.403Z","updated_at":"2025-07-10T11:10:26.226Z","avatar_url":"https://github.com/libre-devops.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LibreDevOps Helpers\n\nA collection of **PowerShell helper modules** that make day-to-day DevOps tasks less tedious and more repeatable.  \n\nThe toolkit wraps common CLI utilities (Terraform, Checkov, Azure CLI, Chocolatey, Homebrew …) with idempotent, test-friendly PowerShell functions and includes a lightweight logging framework.\n\n---\n\n## Available Modules\n\n| Module                                        | Purpose                                                                           |\n|-----------------------------------------------|-----------------------------------------------------------------------------------|\n| **AzureCliLogin**                             | Unified Azure CLI authentication (service-principal, OIDC, device-code, MSI)      |\n| **Checkov**                                   | Safe wrapper for `checkov` scans with skip-lists, soft-fail, and structured logging |\n| **Choco**                                     | Assert that Chocolatey exists and install packages idempotently                   |\n| **Homebrew**                                  | Same as above but for Linux \u0026 macOS Homebrew                                     |\n| **Logger**                                    | Opinionated logging (`INFO`, `WARN`, `DEBUG`, `ERROR`) with timestamps and invocation names |\n| **Pester**                                    | Thin helpers for writing module / pipeline tests                                 |\n| **Terraform**                                 | End-to-end helpers: `Invoke-TerraformInit/Plan/Apply/Destroy`, workspace selection, plan → JSON, etc. |\n| **TerraformDocs**                             | Sort `variables.tf`, `outputs.tf` \u0026 auto-generate **README.md** via `terraform-docs` |\n| **Utils**                                     | Generic helpers (type conversions, OS detection, program discovery, …)           |\n\n---\n\n## Installation\n\n```powershell\n# Install from the PowerShell Gallery\nInstall-Module -Name LibreDevOpsHelpers -Scope CurrentUser\n\n# Import the root module (nested modules auto-load)\nImport-Module LibreDevOpsHelpers\n```\n\n### Prerequisites\n\nSome functions call external CLIs (`terraform`, `checkov`, `az`, etc.).  \nEnsure those are available in your `$Env:PATH` or install them with the included `Assert-ChocoPath` / `Assert-HomebrewPath` helpers.\n\n---\n\n## Quick Start\n\n```powershell\n# Initialize Terraform and run a plan\n$code = \"C:\\src\\infra\\terraform\"\nInvoke-TerraformInit  -CodePath $code -InitArgs '-input=false'\nInvoke-TerraformPlan  -CodePath $code\nConvert-TerraformPlanToJson -CodePath $code -PassThru | Invoke-Checkov\n\n# Log in to Azure with a service-principal\nConnect-AzureCli -UseClientSecret\n```\n\n---\n\n## Using Individual Modules\n\n```powershell\n# Import everything\nImport-Module LibreDevOpsHelpers\n\n# Or cherry-pick only what you need:\nImport-Module LibreDevOpsHelpers.Terraform\nImport-Module LibreDevOpsHelpers.Logger\n```\n\nEach nested module is independent and exports only approved-verb cmdlets.\n\n---\n\n## Contributing\n\n1. Fork the repo \u0026 create a feature branch\n2. Follow the style guide:\n   ```powershell\n   Get-Command -Module LibreDevOpsHelpers | Sort-Object Verb, Noun\n   ```  \n3. Add Pester tests where applicable\n4. Open a PR — GitHub Actions will lint, test, and publish preview packages\n\n---\n\n## License\n\nThis project is licensed under the [MIT License](https://raw.githubusercontent.com/libre-devops/powershell-helpers/main/LICENSE).\n\n___\n\nMade with ❤️ by **Libre DevOps**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fpowershell-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibre-devops%2Fpowershell-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fpowershell-helpers/lists"}