move process.py, ready CLI with base command groups, command names & docstrings

This commit is contained in:
Xevion
2020-08-07 18:52:44 -05:00
parent 11a82525fd
commit 437d132d18
2 changed files with 47 additions and 0 deletions

47
server/cli.py Normal file
View File

@@ -0,0 +1,47 @@
import click
@click.group()
def cli():
"""Base command group."""
pass
@cli.command('fetch')
def fetch():
"""
Fetches data from officequotes.net, placing them in unmodified UTF-8 HTML files.
"""
pass
@cli.command('process')
def process():
"""
Processes manually processed raw quote data into JSON.
"""
pass
@cli.group('build')
def build():
"""Data building command group."""
pass
@build.command('algolia')
def algolia():
"""
Generates algolia.json, a all encompassing file for Algolia's search index.
"""
pass
@build.command('final')
def final():
"""Generates the latest application static data.json file, used by the backend API."""
pass
if __name__ == "__main__":
cli()

View File