GithubHelp home page GithubHelp logo

todaypp / anyenv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mislav/anyenv

0.0 0.0 0.0 56 KB

rbenv-inspired version manager that can be configured to manage versions of ANYTHING

License: MIT License

Go 96.18% Makefile 3.82%

anyenv's Introduction

rbenv, but for anything

This is an implementation of rbenv that aims to be agnostic about what kind of software it is managing versions for. With names of configuration files and variables such as .ruby-version, RBENV_VERSION, etc. being configurable, this project could in theory manage multiple versions of anything and should be able to replace rbenv, pyenv, phantomenv, nodenv and other rbenv-inspired projects.

Build your own version manager

For example, let's say you want to build pyenv with this:

  1. Clone this project into your GOPATH;

  2. Run make with appropriate configuration:

    $ PROGRAM_NAME=pyenv PROGRAM_EXECUTABLE=python make
  3. Move the resulting pyenv binary somewhere into your PATH;

  4. Marvel at how you can now run pyenv version and other commands. This binary is hardcoded to respect:

  • .python-version local files,
  • PYENV_VERSION,
  • PYENV_ROOT,
  • PYENV_DIR.

A work in progress ๐Ÿšง

Rbenv commands implemented so far:

  • rbenv
  • rbenv---version
  • rbenv-commands
  • rbenv-completions
  • rbenv-exec
  • rbenv-global
  • rbenv-help
  • rbenv-hooks โš ๏ธ
  • rbenv-init
  • rbenv-local
  • rbenv-prefix
  • rbenv-rehash
  • rbenv-root
  • rbenv-sh-rehash
  • rbenv-sh-shell
  • rbenv-shims
  • rbenv-version
  • rbenv-version-file
  • rbenv-version-file-read
  • rbenv-version-file-write
  • rbenv-version-name
  • rbenv-version-origin
  • rbenv-versions
  • rbenv-whence
  • rbenv-which

โš ๏ธ Big hurdle to overcome: support rbenv plugin (hook) system that is right now dependent on sourcing bash scripts.

Stay tuned.

anyenv's People

Contributors

mislav avatar

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.