diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-26 16:21:58 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-26 16:22:31 +0200 |
commit | 75dc923f207cccfe4439f46792e624c9c5c230bd (patch) | |
tree | e8ed5ceb31cadbde89ed927ee4f116bac876424f /cli | |
parent | 73ffcccec884bbb62699b1df9ed9a4eecbc21c03 (diff) | |
download | my_new_personal_website-75dc923f207cccfe4439f46792e624c9c5c230bd.tar.xz my_new_personal_website-75dc923f207cccfe4439f46792e624c9c5c230bd.zip |
Move generate to external file
Diffstat (limited to 'cli')
-rw-r--r-- | cli/__init__.py | 0 | ||||
-rw-r--r-- | cli/cli.py | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/cli/__init__.py b/cli/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/cli/__init__.py diff --git a/cli/cli.py b/cli/cli.py new file mode 100644 index 00000000..ad081fb7 --- /dev/null +++ b/cli/cli.py @@ -0,0 +1,9 @@ +#/bin/python3 + +from generators import generators + + +def generate(args): + """Wrapper for generate_blog(fresh=False).""" + # pylint: disable=unused-argument + exit(generators.generate_blog(fresh=False)) |