{"id":22309072,"url":"https://github.com/yevrag35/pscmdletextensions","last_synced_at":"2026-05-16T01:34:20.827Z","repository":{"id":115814215,"uuid":"242420219","full_name":"Yevrag35/PSCmdletExtensions","owner":"Yevrag35","description":"A small library of PSCmdlet extension methods including LINQ parameter checking and piped object retrieval.","archived":false,"fork":false,"pushed_at":"2023-12-22T19:04:43.000Z","size":150,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T12:49:32.330Z","etag":null,"topics":["csharp","csharp-library","extension-methods","linq","powershell"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yevrag35.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2020-02-22T22:24:26.000Z","updated_at":"2021-02-05T17:19:50.000Z","dependencies_parsed_at":"2023-12-22T20:49:36.235Z","dependency_job_id":"86c98fe1-1419-49ba-b613-d127d55b990a","html_url":"https://github.com/Yevrag35/PSCmdletExtensions","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Yevrag35/PSCmdletExtensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevrag35%2FPSCmdletExtensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevrag35%2FPSCmdletExtensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevrag35%2FPSCmdletExtensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevrag35%2FPSCmdletExtensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yevrag35","download_url":"https://codeload.github.com/Yevrag35/PSCmdletExtensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevrag35%2FPSCmdletExtensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271915527,"owners_count":24843190,"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-08-24T02:00:11.135Z","response_time":111,"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":["csharp","csharp-library","extension-methods","linq","powershell"],"created_at":"2024-12-03T20:16:50.119Z","updated_at":"2026-05-16T01:34:20.799Z","avatar_url":"https://github.com/Yevrag35.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# ![(icon)](https://api.nuget.org/v3-flatcontainer/mg.posh.extensions/1.2.1/icon) MG.Posh.Extensions\n\n[![version](https://img.shields.io/nuget/v/MG.Posh.Extensions?style=flat-square)](https://www.nuget.org/packages/MG.Posh.Extensions) [![downloads](https://img.shields.io/nuget/dt/MG.Posh.Extensions?style=flat-square\u0026color=darkgreen)](https://www.nuget.org/packages/MG.Posh.Extensions)\n\n## BoundParameter Checking with LINQ Expression Example\n\n```csharp\nusing System;\nusing System.Management.Automation;\nusing MG.Posh.Extensions.Bound;\n\n[Cmdlet(VerbsCommon.Get, \"Employee\", DefaultParameterSetName=\"ByName\")]\npublic class GetEmployee : PSCmdlet\n{\n    [Parameter(Mandatory=true, Position = 0, ParameterSetName=\"ByName\")]\n    public string Name { get; set; }\n    \n    [Parameter(Mandatory=true, Position = 0, ValueFromPipeline=true, ParameterSetName=\"ByEmployeeId\")]\n    public int Id { get; set; }\n    \n    protected override void ProcessRecord()\n    {\n        if (this.ContainsParameter(x =\u003e x.Name))\n        {\n            base.WriteVerbose(\"Gathering employee by name.\");\n        }\n        // ... and so on.\n    }\n}\n\n```\n\n## PSObject creation with certain class members\n```csharp\npublic struct Employee\n{\n    public int EmployeeId;\n    public string FirstName;\n    public string LastName;\n    \n    public PSObject GetName()\n    {\n        return PSOFactory.CreateFromObject(this, e =\u003e e.FirstName, e =\u003e e.LastName);\n    }\n}\n\n// DISPLAYS\n// FirstName LastName\n// --------- --------\n// Chuck     Norris\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyevrag35%2Fpscmdletextensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyevrag35%2Fpscmdletextensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyevrag35%2Fpscmdletextensions/lists"}