{"id":13529300,"url":"https://github.com/dotps1/PSGist","last_synced_at":"2025-04-01T15:30:48.029Z","repository":{"id":76051931,"uuid":"55989816","full_name":"dotps1/PSGist","owner":"dotps1","description":"A PowerShell module to work with GitHub Gists.","archived":false,"fork":false,"pushed_at":"2016-09-14T20:36:46.000Z","size":5256,"stargazers_count":48,"open_issues_count":1,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-02T15:36:34.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dotps1.github.io/PSGist","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/dotps1.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}},"created_at":"2016-04-11T16:43:19.000Z","updated_at":"2024-06-04T04:34:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"933763f6-2d10-4598-9d2c-5a94a9fa5111","html_url":"https://github.com/dotps1/PSGist","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/dotps1%2FPSGist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotps1%2FPSGist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotps1%2FPSGist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotps1%2FPSGist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotps1","download_url":"https://codeload.github.com/dotps1/PSGist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246662264,"owners_count":20813719,"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-08-01T07:00:35.176Z","updated_at":"2025-04-01T15:30:47.398Z","avatar_url":"https://github.com/dotps1.png","language":"PowerShell","funding_links":[],"categories":["API Wrapper","PowerShell"],"sub_categories":[],"readme":"# PSGist\n## A PowerShell module to interact with GitHub Gists.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/cb3nmam6sqs4b8sv?svg=true)](https://ci.appveyor.com/project/dotps1/psgist)\n\nThis is a PowerShell module that uses the GitHub API to interact and manipulate [Gist](https://developer.github.com).\n\n\n```\nPS GitHub:\\\u003e Get-Command -Module PSGist | Sort-Object -Property Name | Select-Object -Property Name\n\nName\n----\nAdd-GistComment\nAdd-GistFile\nCopy-Gist\nFind-Gist\nFork-Gist\nGet-Gist\nGet-GistComment\nGet-GistCommit\nGet-GistFork\nGet-GistVersion\nNew-Gist\nNew-GistOAuthToken\nRemove-Gist\nRemove-GistComment\nRemove-GistFile\nRename-GistFile\nSave-Gist\nSet-Gist\nUpdate-GistComment\nUpdate-GistFile\n```\n\n\nIn order to use this module, you will need to create a new GitHub API OAuth Token.  To do this, use the `New-GistOAuthToken` cmdlet.\n\n```\nNew-GistOAuthToken -Credental \u003cPSCredential\u003e\n```\n\nThis will generate a new token with access only to Gists to be used by this module.  Once you have authenticated, go ahead and start playing with Gist Objects!\n\n###Update###\nMost functions have been updated to include the -IseScriptPane Dynamic Parameter, this will allow you to add and update file(s) in Gist objects using the content directly from the ISE.\n\nExample 1:\nGet a specific Gist.\n```\nPS GitHub:\\\u003e Get-Gist | Select-Object -First 1\n\n\nOwner       : dotps1\nDescription : Demo Gist for PSGist PowerShell Module.\nId          : fbaba8119507ce58739ca356349cedb1\nCreatedAt   : 4/18/2016 3:12:16 PM\nUpdatedAt   : 4/18/2016 3:12:16 PM\nPublic      : True\nHtmlUrl     : https://gist.github.com/fbaba8119507ce58739ca356349cedb1\nFiles       : PSGist.psm1\n```\n\nExample 2:\nSave a Gist to disk.\n```\nPS C:\\\u003e Get-Gist | Select -First 1 | Save-Gist\n\n\n    Directory: C:\\Users\\dotps1\\AppData\\Roaming\\PSGist\\62f8f608bdfec5d08552\n\n\nMode                LastWriteTime         Length Name                                                                                                                                                                   \n----                -------------         ------ ----                                                                                                                                                                   \n-a----        4/11/2016  12:32 PM           2080 Register-SophosWebIntelligenceService.ps1         \n```\n\nExample 3:\n```powershell\n# Create a new Gist from an existing file.\nNew-Gist -Path .\\HelloWorld.ps1 -Description 'Hello World Gist.'\n```\n\nExample 4:\n```powershell\n# Create a new Gist using the content from the current active ISE Script Tab.\nNew-Gist -IseScriptPane -Public\n```\n\nExample 5:\n```powershell\n# Get the first revision of a Gist.\nGet-Gist | Select -First 1 | Get-GistCommit | Select -Last 1 | Get-GistVersion\n```\n\n\nAdded a new cmdlet to search for Gists:\n```\ndotps1@mypowerrig GitHub:\\PSGist [master ≡] $ Find-Gist -FileNameKeyword Java\n\n\nOwner       : dotps1\nDescription : Creates a new Sccm Java Application and Deployment Type.  All three functions are\n              required.  (See comments for details.)\nId          : 492023ebd737f9cc46aa\nCreatedAt   : 8/14/2015 2:35:19 PM\nUpdatedAt   : 4/26/2016 12:09:33 PM\nPublic      : True\nHtmlUrl     : https://gist.github.com/492023ebd737f9cc46aa\nFiles       : {.New-SccmJavaApplication.ps1, Get-MsiProductCode.ps1,\n              Invoke-JavaDownloadAndMsiExtraction.ps1}\n```\n\n---\n\nThis project is derived from my work with [Trevor Sullivan](https://github.com/pcgeek86) and [PSGitHub](https://github.com/pcgeek86/PSGitHub).  But the more I worked on it, I felt it should be its own module.  Maybe nested in PSGitHub when that is completed...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotps1%2FPSGist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotps1%2FPSGist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotps1%2FPSGist/lists"}