mik-laj opened a new pull request #9030:
URL: https://github.com/apache/airflow/pull/9030


   I wanna print all routes using FLASK CLI
   ```
   FLASK_APP=airflow.www.app:create_app flask routes
   ```
   This will facilitate the development of Airflow.
   
   We also have other commands in CLI
   ```
   root@e7d44179d58b:/opt/airflow# FLASK_APP=airflow.www.app:create_app flask
   [2020-05-27 01:19:46,966] {dagbag.py:368} INFO - Filling up the DagBag from 
/opt/airflow/airflow/providers/google/cloud/example_dags
   /opt/airflow/airflow/utils/decorators.py:90: DeprecationWarning: Passing 
table parameters via keywords arguments will be deprecated. Please use provide 
table definition using `table_resource` parameter.You can still use external 
`schema_object`.
     result = func(*args, **kwargs)
   Usage: flask [OPTIONS] COMMAND [ARGS]...
   
     A general utility script for Flask applications.
   
     Provides commands from Flask, extensions, and the application. Loads the
     application defined in the FLASK_APP environment variable, or from a
     wsgi.py file. Setting the FLASK_ENV environment variable to 'development'
     will enable debug mode.
   
       $ export FLASK_APP=hello.py
       $ export FLASK_ENV=development
       $ flask run
   
   Options:
     --version  Show the flask version
     --help     Show this message and exit.
   
   Commands:
     fab     FAB flask group commands
     routes  Show the routes for the app.
     run     Run a development server.
     shell   Run a shell in the app context.
   ```
   ---
   Make sure to mark the boxes below before creating PR: [x]
   
   - [X] Description above provides context of the change
   - [X] Unit tests coverage for changes (not needed for documentation changes)
   - [X] Target Github ISSUE in description if exists
   - [X] Commits follow "[How to write a good git commit 
message](http://chris.beams.io/posts/git-commit/)"
   - [X] Relevant documentation is updated including usage instructions.
   - [X] I will engage committers as explained in [Contribution Workflow 
Example](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example).
   
   ---
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   Read the [Pull Request 
Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines)
 for more information.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to