Giter VIP home page Giter VIP logo

githubprovider's People

Contributors

weswigham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

githubprovider's Issues

Aliasing Out-File is dangerous

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.

Cannot use Import-Module GH:\...

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

Support for -Depth parameter

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.