Giter Site home page Giter Site logo

composer-version-manager / cvm Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 84 KB

Painstakingly simple version switching for Composer. Built for teams with many PHP projects.

License: Other

Python 100.00%
php composer context-switching composer-version-manager cvm

cvm's People

Contributors

boldbhavek avatar boldmorgan avatar morgan-wowk avatar ubaniak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pombredanne

cvm's Issues

Current version should be tracked on a per-tty basis

Problem

If you are working in multiple TTYs then the current version from the ~/.cvm/config.json will conflict. When the current version changes in one TTY, and you perform an action in a different TTY, the current version will not match and this will cause unnecessary stdout logging and PATH updates.

Steps to reproduce

  1. Open TTY 1
  2. Set a global composer version
  3. Navigate somewhere within the global scope (no cvm_config)
  4. Notice the TTY will output "Using composer version ..."
  5. The next time to run ls or any command, it should not output Using composer version ... every time. It should only do this when the current version changes.
  6. Open TTY 2
  7. Navigate to a non-global scope. Somewhere that has a cvm_config with another version.
  8. Notice it will output "Using composer version ..." as expected
  9. Go back to TTY 1 and run any command
  10. Notice it will output "Using composer version ..." even though nothing has changed in the current TTY. This is because both TTYs are looking at and updating the same current field in the ~/.cvm/config.json

Solution

Come up with a way of tracking the current version on a per-tty basis. Not for the application as a whole.

Broken brew installation

Installation using Brew is broken, see steps below:

~
❯ brew --version
Homebrew 4.2.3

~
❯ brew install composer-version-manager/cvm/cvm
Error: composer-version-manager/cvm/cvm: wrong number of arguments (given 1, expected 0)

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.