mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 16:14:36 +00:00
25 lines
498 B
Python
25 lines
498 B
Python
import click
|
|
from flask.cli import AppGroup
|
|
|
|
from project import app
|
|
from project.cli import click_logging
|
|
from project.services import seo
|
|
|
|
seo_cli = AppGroup("seo")
|
|
|
|
|
|
@seo_cli.command("generate-sitemap")
|
|
@click.option("--pinggoogle/--no-pinggoogle", default=False)
|
|
@click_logging
|
|
def generate_sitemap(pinggoogle):
|
|
seo.generate_sitemap(pinggoogle)
|
|
|
|
|
|
@seo_cli.command("generate-robots-txt")
|
|
@click_logging
|
|
def generate_robots_txt():
|
|
seo.generate_robots_txt()
|
|
|
|
|
|
app.cli.add_command(seo_cli)
|