fix main so it builds the website also
This commit is contained in:
parent
55094a3367
commit
9ce31eef66
|
@ -1,10 +1,8 @@
|
|||
import click
|
||||
from grab import makePublic
|
||||
from shared import TagHelper
|
||||
from build import build
|
||||
|
||||
|
||||
@click.command()
|
||||
def grab():
|
||||
all_files = TagHelper.getAllFiles()
|
||||
filtered_files = makePublic.filterFiles(all_files)
|
||||
|
@ -13,14 +11,15 @@ def grab():
|
|||
makePublic.censorFiles()
|
||||
|
||||
|
||||
@click.command()
|
||||
def build_website():
|
||||
print('building websites')
|
||||
build.generate_website()
|
||||
|
||||
|
||||
@click.command()
|
||||
def main():
|
||||
print('in main')
|
||||
grab()
|
||||
print('going to build')
|
||||
build_website()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue