Git Product home page Git Product logo

kzenv's Introduction

kzenv

GitHub Actions Status

Kustomize version manager mainly inspired by tfenv

Support

Currently kzenv supports the following OSes

  • Linux (64bit)
  • Mac OS X (64bit)

Installation

Automatic

For Archlinux users :

$ wget https://github.com/nlamirault/kzenv/releases/download/v1.0.0/kzenv-1.0.0-1-x86_64.pkg.tar.zst
$ sudo pacman -U kzenv-1.0.0-1-x86_64.pkg.tar.zst

For OSX users :

Installing the tap will provide access to software via Homebrew:

$ brew tap nlamirault/kzenv https://github.com/nlamirault/kzenv/

Installing individual software tools can then be done as follows:

$ brew install kzenv

Manual

On any other platform, you can install kzenv as follows:

  1. Check out kzenv into any path (here is ${HOME}/.kzenv)
$ git clone https://github.com/nlamirault/kzenv.git ${HOME}/.kzenv
  1. Add ${HOME}/.kzenv/bin to your $PATH any way you like

For Bash

$ echo 'export PATH="${HOME}/.kzenv/bin:$PATH"' >> ${HOME}/.bash_profile

For Zsh :

echo 'export PATH="${HOME}/.kzenv/bin:$PATH"' >> ${HOME}/.zprofile

OR you can make symlinks for kzenv/bin/* scripts into a path that is already added to your $PATH (e.g. /usr/local/bin) OSX/Linux Only!

$ ln -s ${HOME}/.kzenv/bin/* /usr/local/bin

You can create ${HOME}/bin or ${HOME}/.local/bin and on next login it will get added to the session $PATH or by running . ${HOME}/.profile it will get added to the current shell session's $PATH.

$ mkdir -p ~/.local/bin/
$ . ~/.profile
$ ln -s ~/.kzenv/bin/* ~/.local/bin
$ command -v kzenv

Github API

kzenv use Github API to check releases. You could set the GITHUB_API_TOKEN environment variable to use the authenticated API

Usage

kzenv install [version]

Install a specific version of Kustomize. Available options for version:

  • i.j.k exact version to install
$ kzenv install 0.7.0

kzenv use [version]

Switch a version to use

$ kzenv use 3.4.0

kzenv uninstall [version]

Uninstall a specific version of Kustomize

$ kzenv uninstall 3.3.0

kzenv list

List installed versions

$ kzenv list
* 3.4.0 (set by /home/nicolas/Projects/kzenv/version)
  3.3.0
  2.0.3

kzenv list-remote

List installable versions

% kzenv list-remote
3.4.0
3.4.0
3.3.0
3.3.0
3.2.3
3.2.3
...
3.0.0
3.0.0
2.1.0
2.1.0
2.0.3
2.0.3
2.0.2
2.0.2
2.0.1
2.0.1
2.0.0
2.0.0
1.0.11
...
1.0.6
1.0.6
...

.kustomize-version

If you use a .kustomize-version file, kzenv install (no argument) will install the version written in it.

Upgrading

$ git --git-dir=~/.kzenv/.git pull

Uninstalling

$ rm -rf /some/path/to/kzenv

LICENSE

kzenv's People

Contributors

mend-bolt-for-github[bot] avatar nlamirault avatar renovate-bot avatar tpoindessous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kzenv's Issues

Duplicate versions in remote

Duplicate versions :

$ kzenv list-remote
3.5.4
3.5.4
3.5.3
3.5.3
3.5.2
3.5.2
3.5.1
3.5.1
3.4.0
3.4.0
3.3.0
3.3.0
3.2.3
3.2.3
3.2.2
3.2.2
3.2.1
3.2.1
3.2.0
3.2.0
3.1.0
3.1.0
3.0.3
3.0.3
3.0.2
3.0.2
3.0.1
3.0.1
3.0.0
3.0.0
2.1.0
2.1.0
2.0.3
2.0.3
2.0.2
2.0.2
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1

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.