forked from loafle/openapi-generator-original
Update launcher script to use 4.x as examples
This commit is contained in:
parent
a24d314006
commit
acabbe0e88
20
README.md
20
README.md
@ -223,21 +223,21 @@ Examples:
|
|||||||
# Execute latest released openapi-generator-cli
|
# Execute latest released openapi-generator-cli
|
||||||
openapi-generator-cli version
|
openapi-generator-cli version
|
||||||
|
|
||||||
# Execute version 3.1.0 for the current invocation, regardless of the latest released version
|
# Execute version 4.1.0 for the current invocation, regardless of the latest released version
|
||||||
OPENAPI_GENERATOR_VERSION=3.1.0 openapi-generator-cli version
|
OPENAPI_GENERATOR_VERSION=4.1.0 openapi-generator-cli version
|
||||||
|
|
||||||
# Execute version 3.1.0-SNAPSHOT for the current invocation
|
# Execute version 4.1.0-SNAPSHOT for the current invocation
|
||||||
OPENAPI_GENERATOR_VERSION=3.1.0-SNAPSHOT openapi-generator-cli version
|
OPENAPI_GENERATOR_VERSION=4.1.0-SNAPSHOT openapi-generator-cli version
|
||||||
|
|
||||||
# Execute version 3.0.2 for every invocation in the current shell session
|
# Execute version 4.0.2 for every invocation in the current shell session
|
||||||
export OPENAPI_GENERATOR_VERSION=3.0.2
|
export OPENAPI_GENERATOR_VERSION=4.0.2
|
||||||
openapi-generator-cli version # is 3.0.2
|
openapi-generator-cli version # is 4.0.2
|
||||||
openapi-generator-cli version # is also 3.0.2
|
openapi-generator-cli version # is also 4.0.2
|
||||||
|
|
||||||
# To "install" a specific version, set the variable in .bashrc/.bash_profile
|
# To "install" a specific version, set the variable in .bashrc/.bash_profile
|
||||||
echo "export OPENAPI_GENERATOR_VERSION=3.0.2" >> ~/.bashrc
|
echo "export OPENAPI_GENERATOR_VERSION=4.0.2" >> ~/.bashrc
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
openapi-generator-cli version # is always 3.0.2, unless any of the above overrides are done ad hoc
|
openapi-generator-cli version # is always 4.0.2, unless any of the above overrides are done ad hoc
|
||||||
```
|
```
|
||||||
|
|
||||||
### [1.4 - Build Projects](#table-of-contents)
|
### [1.4 - Build Projects](#table-of-contents)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user