Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/austincunningham/change_oc
A command line tool for downloading and switching between oc binarys
https://github.com/austincunningham/change_oc
binary cli command-line-tool oc
Last synced: 11 days ago
JSON representation
A command line tool for downloading and switching between oc binarys
- Host: GitHub
- URL: https://github.com/austincunningham/change_oc
- Owner: austincunningham
- License: apache-2.0
- Created: 2018-11-16T19:58:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T21:41:28.000Z (about 2 years ago)
- Last Synced: 2024-04-26T13:02:58.625Z (9 months ago)
- Topics: binary, cli, command-line-tool, oc
- Language: JavaScript
- Homepage: http://change-oc.ddns.net
- Size: 24.8 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
---
---
# Change_oc
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Build Status](https://travis-ci.org/austincunningham/change_oc.svg?branch=master)](https://travis-ci.org/austincunningham/change_oc)
[![npm version](https://badge.fury.io/js/change_oc.svg)](https://badge.fury.io/js/change_oc)
[![Known Vulnerabilities](https://snyk.io/test/github/austincunningham/change_oc/badge.svg)](https://snyk.io/test/github/austincunningham/change_oc)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
```
/opt/openshift/
|_ 3.7
|_ 3.9
|_ 3.10
|_ 3.11
|_ 4.1
|_ 4.2
|_ 4.3
|_ 4.4
|_ 4.5
|_ 4.6
```Sets the oc binary to execute by symlinking
```
/usr/bin/oc
```## Prerequisite
- node 10
- npm
- os linux## Installation
Installation from npm
```bash
npm install -g change_oc
```Installation from source clone and install the repo
``` bash
git clone https://github.com/austincunningham/change_oc.git
cd change_oc
npm install
```## Usage
From npm run the module
```
change_oc
```From source run the npm start script and follow the onscrean instructions
``` bash
npm start
```
### Download
![](./image/download.gif)
### Change binary
![](./image/change.gif)## 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`