summaryrefslogtreecommitdiff
path: root/megapixels/commands
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-12-15 21:43:04 +0100
committerJules Laplace <julescarbon@gmail.com>2018-12-15 21:43:04 +0100
commit50a35da0c14664bd3e1392254afec21ef3880440 (patch)
treeba8a1e506a8c9fc96b73f7107acee31f9e9859c1 /megapixels/commands
parente0b0b2f976c61225a178c7715caf2656a1f6741f (diff)
make builder a click script
Diffstat (limited to 'megapixels/commands')
-rw-r--r--megapixels/commands/builder/build.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/megapixels/commands/builder/build.py b/megapixels/commands/builder/build.py
new file mode 100644
index 00000000..fc4fb302
--- /dev/null
+++ b/megapixels/commands/builder/build.py
@@ -0,0 +1,15 @@
+"""
+Build the static site
+"""
+
+import click
+
+from app.builder.builder import build_site
+
+@click.command()
+@click.pass_context
+def cli(ctx):
+ """Build the static site
+ """
+ print('Building the site...')
+ build_site()