{"id":17888089,"url":"https://github.com/fireflycons/psdynamicparameters","last_synced_at":"2025-04-03T02:42:30.939Z","repository":{"id":40882375,"uuid":"255294094","full_name":"fireflycons/PSDynamicParameters","owner":"fireflycons","description":"Library for creating PowerShell dynamic parameters for binary cmdlets","archived":false,"fork":false,"pushed_at":"2022-12-08T10:09:50.000Z","size":100,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T20:33:54.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/fireflycons.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":"2020-04-13T10:20:06.000Z","updated_at":"2023-03-30T09:08:32.000Z","dependencies_parsed_at":"2023-01-25T06:45:35.353Z","dependency_job_id":null,"html_url":"https://github.com/fireflycons/PSDynamicParameters","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2FPSDynamicParameters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2FPSDynamicParameters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2FPSDynamicParameters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2FPSDynamicParameters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fireflycons","download_url":"https://codeload.github.com/fireflycons/PSDynamicParameters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927809,"owners_count":20856193,"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-28T13:36:32.175Z","updated_at":"2025-04-03T02:42:30.923Z","avatar_url":"https://github.com/fireflycons.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firefly.PowerShell.DynamicParameters\n\n[![Build status](https://ci.appveyor.com/api/projects/status/a7wi3yhl92wii80u/branch/master?svg=true)](https://ci.appveyor.com/project/fireflycons/psdynamicparameters/branch/master)\n\n![Nuget](https://img.shields.io/nuget/v/Firefly.PowerShell.DynamicParameters)\n\nA library for the creation of runtime [dynamic parameters](https://docs.microsoft.com/en-gb/powershell/module/microsoft.powershell.core/about/about_functions_advanced_parameters) for binary cmdlets.\n\nWhen creating a binary cmdlet, there are two ways that you can declare dynamic parameters:\n\n1. When you know all the parameters you'll ever need at compile time, you can declare each parameter type in its own class. An example of this can be found in [this PowerShell Magazine article](https://www.powershellmagazine.com/2014/06/23/dynamic-parameters-in-c-cmdlets/)\n1. When you don't necessarily know what parameters you'll need and you will create them on the fly in response to the values passed to the cmdlet's fixed arguments, then we need to create a [RuntimeDefinedParameterDictionary](https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.runtimedefinedparameterdictionary).\n\nThis library handles the second case above. By implementing a builder pattern to create new dynamic paramaters, this makes it easy to manage the myriad attributes that may be applied to a cmdlet parameter.\n\n## Supported PowerShell Versions\n\nThe nuget package contains the following builds\n\n* .NET Framework 4.0 - Windows PowerShell 5.1\n* .NET Core 2.1 - PowerShell Core 6 (Windows/Linux/MacOS) - With PS 6 features.\n* .NET Core 3.1 - PowerShell Core 7 (Windows/Linux/MacOS) - With PS 7 Features\n* .NET Standard 2.0 - Powershell \u003e= 5.1 (Cross Platform) - PS 5.1 features\n\nTests are run on all three platforms for both PowerShell Core versions.\n\n## Library Documentation\n\nAPI documentation and example usage can be found [here](https://fireflycons.github.io/PSDynamicParameters).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireflycons%2Fpsdynamicparameters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffireflycons%2Fpsdynamicparameters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireflycons%2Fpsdynamicparameters/lists"}