{"id":17867133,"url":"https://github.com/cdhunt/bob","last_synced_at":"2025-03-21T09:31:16.315Z","repository":{"id":145808748,"uuid":"131623578","full_name":"cdhunt/bob","owner":"cdhunt","description":"PowerShell module builder","archived":false,"fork":false,"pushed_at":"2018-05-05T17:21:17.000Z","size":21,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T05:25:40.205Z","etag":null,"topics":["ci-cd","experimental","learning-exercise","powershell"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdhunt.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-30T17:08:28.000Z","updated_at":"2019-04-29T16:29:32.000Z","dependencies_parsed_at":"2023-06-11T08:34:00.750Z","dependency_job_id":null,"html_url":"https://github.com/cdhunt/bob","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhunt%2Fbob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhunt%2Fbob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhunt%2Fbob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhunt%2Fbob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdhunt","download_url":"https://codeload.github.com/cdhunt/bob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244130281,"owners_count":20402756,"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":["ci-cd","experimental","learning-exercise","powershell"],"created_at":"2024-10-28T09:44:16.177Z","updated_at":"2025-03-21T09:31:16.300Z","avatar_url":"https://github.com/cdhunt.png","language":"PowerShell","readme":"# Bob\n\nThis project is an exploration of [Software Design Patterns in PowerShell](https://www.automatedops.com/blog/2018/04/11/software-design-patterns-in-powershell-strategy-pattern/).\nCurrently, the goal isn't to produce a usable module, but to test out some ideas of how to put PowerShell modules together.\nBy building a module on top of PowerShell classes utilizing the [Strategy pattern](http://www.blackwasp.co.uk/Strategy.aspx), we should be able to build a module that is easier to maintain and plug in additional functionality without changes to the core code.\n\nWe can use multiple forms of invocation depending on preference and context.\n\n```powershell\n# PS Classes w/Fluent API\nPS\u003e [Job]::New('src', 'dst').\n\u003e\u003e         AddStage([Clean]::New()).\n\u003e\u003e         AddStage([Copy]::New()).\n\u003e\u003e         AddStage([Test]::New()) | Select stages\n\nStages\n------\n{Clean, Copy, Test}\n\n# Cmdlet Pipeline\nPS\u003e New-BuildJob src dst | Add-StageClean | Add-StageCopy | Add-StageTest | Select stages\n\nStages\n------\n{Clean, Copy, Test}\n\n\n# Cmdlet Pipeline w/ Generic Cmdlet\nPS\u003e New-BuildJob src dst | Add-StageClean | Add-StageCopy | Add-BuildStage -Stage ([Test]::New()) | Select stages\n\nStages\n------\n{Clean, Copy, Test}\n\n\n# DSL\nBuildJob src dst {\n    CleanStg\n    CopyStg\n    TestStg\n} | Select stages\n\nStages\n------\n{Clean, Copy, Test}\n\n# YAML Config\nPS\u003e New-BuildFromYaml .\\build.yaml | Select stages\n\nStages\n------\n{Clean, Copy, Test}\n```\n\n:warning: Please don't pay much attention to the names of things.\nThis is not meant to be an example of a well-formed module.\nYou probably won't win any scripting games by copying the structure of this module.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdhunt%2Fbob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdhunt%2Fbob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdhunt%2Fbob/lists"}