[英]How to get the list of files from particular repo in github using PowerShell?
Something similar to this - How to get list of files from a specific GitHub repo(Link) in c# , but using PowerShell.与此类似的东西 - 如何从 c# 中的特定 GitHub repo(Link) 获取文件列表,但使用 PowerShell。
Microsoft already provides cmdlets for github use cases. Microsoft 已经为 github 用例提供了 cmdlet。
PowerShellForGitHub
PowerShellForGitHub
https://github.com/Microsoft/PowerShellForGitHub
https://github.com/Microsoft/PowerShellForGitHub
Even the link you post gave you an answer:甚至您发布的链接也给了您答案:
curl https://api.github.com/repos/crs2007/ActiveReport/contents/ActiveReport
curl is an alias in PowerShell curl 是 PowerShell 中的别名
Get-Alias -Name curl
# Results
<#
Get-Alias -Name curl
CommandType Name Version Source
----------- ---- ------- ------
Alias curl -> Invoke-WebRequest
#>
# Get specifics for a module, cmdlet, or function
(Get-Command -Name Invoke-WebRequest ).Parameters
(Get-Command -Name Invoke-WebRequest ).Parameters.Keys
Get-help -Name Invoke-WebRequest -Examples
Get-help -Name Invoke-WebRequest -Full
Get-help -Name Invoke-WebRequest -Online
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.