https://github.com/bostrt/getoc
https://github.com/bostrt/getoc
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bostrt/getoc
- Owner: bostrt
- License: mit
- Created: 2020-12-08T19:14:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-08T19:19:33.000Z (over 5 years ago)
- Last Synced: 2025-02-12T20:36:13.962Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Commands
```shell
$ getoc dl 4.1 # Gets latest 4.1
$ getoc dl 4.6.4
$ getoc dl stable-4.6
$ getoc dl latest-4.5
$ getoc # Default behavior is to show prompt on downloading binaries
$ getoc switch # Switch your oc link to point to something else
$ getoc stable-4.6 --include-kubectl
$ getoc usage # Displays disk usage summary of binaries
$ getoc clean # Removes all downloaded binaries from ~/.local/getoc/bin
```
## Directories
- The `oc` binaries downloaded are stored in `~/.local/getoc/bin`
- `~/.local/getoc/bin` is automatically added to user's `$PATH`.
## Development
```shell
$ git clone https://github.com/bostrt/getoc.git
$ cd getoc
$ virtualenv v
$ source v/bin/activate
$ pip install -e .
$ getoc -h
```