Git Product home page Git Product logo

Comments (4)

lipkau avatar lipkau commented on May 29, 2024

Why should they be in conflict?
They are private methods....

also, the module has a prefix: BitBucket (by default. which can be changed with Import-Module BitBucketPS -Prefix BB

from bitbucketps.

martin9700 avatar martin9700 commented on May 29, 2024

Why should they be in conflict? They are private methods....

That are loaded into memory. If I Invoke-Method how does PowerShell know which to use?

also, the module has a prefix: BitBucket

Where? I don't see anything in the manifest

(by default. which can be changed with Import-Module BitBucketPS -Prefix BB

I don't think pushing the responsibility of conflict resolution onto the user is the right answer. Especially when you're talking about a products within the same company. If you conflict with some other random module, oh well you can only control so much. But we can control this and make the experience seamless. Why NOT do it?

from bitbucketps.

martin9700 avatar martin9700 commented on May 29, 2024

Ok, found the prefix. Was looking at the wrong repo (ironically, my own!)

Haven't played with that much. Is the idea to allow you to use the same functions in multiple modules?

from bitbucketps.

lipkau avatar lipkau commented on May 29, 2024

That are loaded into memory. If I Invoke-Method how does PowerShell know which to use?

Private methods only exist in the context of the module. so only functions of the module have access to it. it doesn't exist outside the module.

Is the idea to allow you to use the same functions in multiple modules?

No. The idea of the -Prefix is that the default might be too long (or otherwise unwanted) for the user. So he gets the chance to change it to what he prefers; but the verb and the noun (without prefix) are unchanged

from bitbucketps.

Related Issues (20)

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.