pbvm

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 1 Imported by: 0

README

pbvm

pbvm - Protocol Buffers Version Manager.

Install

# download & unpack
$ wget https://github.com/ekalinin/pbvm/releases/download/v0.0.1/pbvm_0.0.1_linux_x86_64.tar.gz
$ tar pbvm_0.0.1_linux_x86_64.tar.gz

# install
$ sudo cp pbvm /usr/bin

# activate
$ export PATH="$PATH:$HOME/.pbvm/active/bin"

Usage

List available versions

$ pbvm list-remote -n 5     
   VERSION   | PRE-RELEASE |    DATE    | INSTALLED  
-------------+-------------+------------+------------
  v4.0.0-rc1 | true        | 2020.07.15 | true       
  v3.12.3    | false       | 2020.06.03 | true       
  v3.12.2    | false       | 2020.05.26 | false      
  v3.12.1    | false       | 2020.05.20 | false      
  v3.12.0    | false       | 2020.05.15 | true 

Install (switch) to version

$ pbvm install v4.0.0-rc1
$ protoc --version
libprotoc 4.0.0

$ pbvm install v3.12.3
$ protoc --version
libprotoc 3.12.3

# will just switch active version (without downloading)
$ pbvm install v4.0.0-rc1
$ protoc --version
libprotoc 3.12.3

List local versions

$ pbvm ls                                         
   VERSION   | INSTALL DATE | ACTIVE  
-------------+--------------+---------
  v4.0.0-rc1 | 2020.07.20   | false   
  v3.12.3    | 2020.07.20   | true    
  v3.12.0    | 2020.07.21   | false 

Run with a version

$ protoc --version
libprotoc 3.12.3

$ pbvm run "protoc --version" --version v4.0.0-rc1        
libprotoc 4.0.0

$ protoc --version
libprotoc 3.12.3

Auto completion

# see instructions below
$ pbvm completion -h

Documentation

Overview

Copyright © 2020 Eugene Kalinin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL