weswigham / githubprovider Goto Github PK
View Code? Open in Web Editor NEW:octocat: A provider for powershell which uses octokit to let you use github repos as a filesystem inside powershell
License: MIT License
:octocat: A provider for powershell which uses octokit to let you use github repos as a filesystem inside powershell
License: MIT License
Any story for read/write from/to non-default branches/tags?
out-file
is a built-in cmdlet. Aliasing it can break somebodies existing scripts, if it's not 100% compatible. This happened with me. When I dig into it, it turns out I have GithubFS module imported and it altered my aliases.
Here is an exception that I get.
> '1' | out-file -Encoding ASCII foo
Get-Item : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Program Files\WindowsPowerShell\Modules\GithubFS\1.0.1\GithubFS.psm1:44 char:19
+ ... $(get-item $FilePath.Substring(0,$FilePath.LastIndexOf(':')+1)).PSPr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Get-Item], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.GetI
temCommand
Also, even if it's implemented properly such aliasing may add performance burn that is hard to track.
Awesome project!
I would like to use it in read-only mode for few projects.
Main use case: I want to get some code on CI system, like DscResource.Tests
here https://github.com/PowerShell/xExchange/blob/dev/appveyor.yml . If I can mount particular GitHub repo, instead of cloning it, it would be much nicer. For read-only mode I should not need a token.
I would love to be able to do that, so I would have the latest dev version of modules that I'm working on
Currently I get an error
> Import-Module GH:\vors\ZLocation\ZLocation\ZLocation.psd1
Import-Module : The current provider (GithubProvider\Github) cannot open a file.
At line:1 char:1
+ Import-Module GH:\vors\ZLocation\ZLocation\ZLocation.psd1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (GH:\vors\ZLocat...\ZLocation.psd1:String) [Import-Module], RuntimeExc
eption
+ FullyQualifiedErrorId : FileOpenError,Microsoft.PowerShell.Commands.ImportModuleCommand
It doesn't fail locally so it's a bit hard to reproduce exactly what's going on.
Since network is not very fast, -Depth
parameter become very handy for explorations, i.e. to get all LICENSE files in your org and so on. Currently it produces error.
[8095] GH:\PowerShell\
> ls -Recurse -Depth 1
ls : Provider operation stopped because the provider does not support the 'Depth' parameter.
At line:1 char:1
+ ls -Recurse -Depth 1
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (:) [Get-ChildItem], PSNotSupportedException
+ FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.GetChildItemCommand
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.