summaryrefslogtreecommitdiff
path: root/archivist/cli.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2017-10-03 22:02:16 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2017-10-03 22:06:16 +0200
commit90a209e69f455b49c4a642fb2b3288f915fed1dc (patch)
tree704e46827a82d60faf413b1ef992c82619b3bfa6 /archivist/cli.py
parentd012b1b3160e651b32d7e822ca998a2860828081 (diff)
downloadarchivist-90a209e69f455b49c4a642fb2b3288f915fed1dc.tar.gz
archivist-90a209e69f455b49c4a642fb2b3288f915fed1dc.tar.bz2
archivist-90a209e69f455b49c4a642fb2b3288f915fed1dc.zip
Basic server implementation
Diffstat (limited to '')
-rw-r--r--archivist/cli.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/archivist/cli.py b/archivist/cli.py
index 5f1d8ba..9299c94 100644
--- a/archivist/cli.py
+++ b/archivist/cli.py
@@ -5,6 +5,7 @@ from functools import reduce
import operator as op
from .virtual_prefixes import query as query_virtual, is_virtual, register_prefixes
+from .utils import ProxyCommand
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
@@ -19,6 +20,16 @@ def enable_debug():
def cli(debug):
if debug or 'DEBUG' in os.environ: enable_debug()
+
+class ServerCommand(ProxyCommand):
+ def _get_proxy(self):
+ from .server import server_group
+ return server_group
+
+@cli.group(cls=ServerCommand)
+def server():
+ """Flask server handling"""
+
@cli.group()
def db():
"""Database Management"""