rename cli.py to commands.py

master
Jeremy Epstein 8 years ago
parent 2f1168b6d4
commit db0246de90
  1. 10
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
  2. 0
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/commands.py

@ -2,7 +2,7 @@
"""The app module, containing the app factory function."""
from flask import Flask, render_template
from {{cookiecutter.app_name}} import cli, public, user
from {{cookiecutter.app_name}} import commands, public, user
from {{cookiecutter.app_name}}.assets import assets
from {{cookiecutter.app_name}}.extensions import bcrypt, cache, csrf_protect, db, debug_toolbar, login_manager, migrate
from {{cookiecutter.app_name}}.settings import ProdConfig
@ -68,7 +68,7 @@ def register_shellcontext(app):
def register_commands(app):
"""Register Click commands."""
app.cli.add_command(cli.test)
app.cli.add_command(cli.lint)
app.cli.add_command(cli.clean)
app.cli.add_command(cli.urls)
app.cli.add_command(commands.test)
app.cli.add_command(commands.lint)
app.cli.add_command(commands.clean)
app.cli.add_command(commands.urls)

Loading…
Cancel
Save