Merge pull request #69 from geopython/click-7.0

update subcommand names for click 7.0 changes
This commit is contained in:
Jorge Samuel Mendes de Jesus
2018-10-02 18:50:59 +02:00
committed by GitHub
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ env:
before_script:
- sleep 20
- python tests/load_es_data.py tests/data/ne_110m_populated_places_simple.geojson
- pygeoapi generate_openapi_document -c pygeoapi-config.yml > pygeoapi-openapi.yml
- pygeoapi generate-openapi-document -c pygeoapi-config.yml > pygeoapi-openapi.yml
script:
- pytest --cov=pygeoapi
+2 -2
View File
@@ -20,7 +20,7 @@ vi local.config.yml
# TODO: what is most important to edit?
export PYGEOAPI_CONFIG=/path/to/local.config.yml
# generate OpenAPI Document
pygeoapi generate_openapi_document -c local.config.yml > openapi.yml
pygeoapi generate-openapi-document -c local.config.yml > openapi.yml
export PYGEOAPI_OPENAPI=/path/to/openapi.yml
pygeoapi serve
```
@@ -122,4 +122,4 @@ Unit tests are run using pytest on the top project folder:
pytest tests
```
Enviroment variable are set on file `pytest.ini`
Enviroment variable are set on file `pytest.ini`
+1 -1
View File
@@ -4,7 +4,7 @@ set +e
echo "Trying to generate openapi.yml"
cd /pygeoapi
pygeoapi generate_openapi_document -c local.config.yml > openapi.yml
pygeoapi generate-openapi-document -c local.config.yml > openapi.yml
if [ $? -ne 0 ] ; then
echo "openapi.yml couldnt be generate ERROR, but carry on"
+1 -1
View File
@@ -4,7 +4,7 @@ set +e
echo "Trying to generate openapi.yml"
cd /pygeoapi
pygeoapi generate_openapi_document -c local.config.yml > openapi.yml
pygeoapi generate-openapi-document -c local.config.yml > openapi.yml
if [ $? -ne 0 ] ; then
echo "openapi.yml couldnt be generate ERROR, but carry on"
+1 -1
View File
@@ -280,7 +280,7 @@ def get_oas(cfg, version='3.0'):
raise RuntimeError('OpenAPI version not supported')
@click.command()
@click.command('generate-openapi-document')
@click.pass_context
@click.option('--config', '-c', 'config_file', help='configuration file')
def generate_openapi_document(ctx, config_file):