项目作者: austincunningham

项目描述 :
A command line tool for downloading and switching between oc binarys
高级语言: JavaScript
项目地址: git://github.com/austincunningham/change_oc.git
创建时间: 2018-11-16T19:58:30Z
项目社区:https://github.com/austincunningham/change_oc

开源协议:GNU General Public License v3.0

下载




Change_oc

License: GPL v3
Build Status
npm version
Known Vulnerabilities

Some command line tooling to download, extract and set the version of oc on the local system.

Downloads the compressed oc binary to this module and extracts the various oc versions to the following locations

  1. /opt/openshift/
  2. |_ 3.7
  3. |_ 3.9
  4. |_ 3.10
  5. |_ 3.11
  6. |_ 4.1
  7. |_ 4.2
  8. |_ 4.3
  9. |_ 4.4
  10. |_ 4.5
  11. |_ 4.6

Sets the oc binary to execute by symlinking

  1. /usr/bin/oc

Prerequisite

  • node 10
  • npm
  • os linux

Installation

Installation from npm

  1. npm install -g change_oc

Installation from source clone and install the repo

  1. git clone https://github.com/austincunningham/change_oc.git
  2. cd change_oc
  3. npm install

Usage

From npm run the module

  1. change_oc

From source run the npm start script and follow the onscrean instructions

  1. npm start

Download

Change binary

Release Steps

  • Make changes
  • If necessary update README.md
  • Update CHANGELOG.md
  • Squash commits to single commit
  • Commit the changes
  • Bump the version in the package.json
  • Remove package-lock.json and run npm install
  • Second commit for version bump
  • Merge changes from the PR
  • Pull upstream changes to master
  • Publish the changes npm publish