openapi-version-manager

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: MIT Imports: 3 Imported by: 0

README

swagger-version-manager

What's this?

swagger-version-manager is a tiny CLI tool to help you manage different versions of swagger-codegen on your local machine.

$ swagger-version-manager --help
NAME:
   swagger-version-manager - A new cli application

USAGE:
   swagger-version-manager-darwin-amd64 [global options] command [command options] [arguments...]

VERSION:
   1.0.0

COMMANDS:
     current  show the current swagger codegen version
     list     list available swagger codegen versions
     use      use the specified swagger-codegen-version
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

list available swagger versions

$ swagger-version-manager list
3.0.0-rc1
3.0.0-rc0
2.3.1
2.3.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.6
2.1.5

use a specific swagger-codegen version

$ swagger-version-manager use 2.2.3
downloading http://search.maven.org/remotecontent?filepath=io/swagger/swagger-codegen-cli/2.2.3/swagger-codegen-cli-2.2.3.jar
 3.25 MiB / 13.19 MiB [===================>                                                                     ]  25% 00m01
$ swagger-codegen version
2.2.3

Installation

MacOS
curl -Lo swagger-version-manager https://github.com/Place1/swagger-version-manager/releases/download/v1.0.0/swagger-version-manager-darwin-amd64
chmod +x ./swagger-version-manager
mv ./swagger-version-manager /usr/local/bin/
swagger-version-manager --help
Linux
curl -Lo swagger-version-manager https://github.com/Place1/swagger-version-manager/releases/download/v1.0.0/swagger-version-manager-linux-amd64
chmod +x ./swagger-version-manager
mv ./swagger-version-manager /usr/local/bin/
swagger-version-manager --help
Windows
  1. Download the windows binary from the release page
  2. rename it to swagger-version-manager.exe
  3. execute it using powershell
    • swagger-version-manager required admin privileges on windows because it writes the swagger-codegen executable to C:\Windows\System32\swagger-codegen. I'm not familiar with windows but i'd love a PR that changes this behaviour so that admin privileges are not required.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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