protoenv

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

protoenv

version manager for protocol buffer tools

Install

go install github.com/shiv3/protoenv

Usage

protoc

subcommands

Usage:
  protoenv protoc [command]

Available Commands:
  global      Set or show the global protoc version
  init        Set or show the global Go version%!(EXTRA string=protoc)
  install     install specified version
  local       Set or show the local protoc version
  version     Show the current protoc version and its origin
  versions    List all protoc versions available to protoenv

Flags:
  -h, --help   help for protoc

Global Flags:
      --config string   config file (default is $HOME/.protoenv/config.yaml)
  • show protoc versions
$ protoenv protoc install -l
v3.17.3
v3.17.2
v3.17.1
...
  • install version
$ protoenv protoc install v3.17.3
downloading https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-osx-x86_64.zip ..
installed protoc ~/.protoenv/protoc/versions/v3.17.3/protoc
set global version: v3.17.3
  • set global version
$ protoenv protoc global v3.17.3
set global version: v3.17.3

Documentation

Overview

Copyright © 2021 shiv3

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

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