Add main driver function for comfortable_swipe

This commit is contained in:
Rico Tiongson 2019-03-02 17:45:29 +08:00
parent fec9226129
commit f789ed4ee5

View File

@ -0,0 +1,19 @@
from __future__ import print_function
import sys
from comfortable_swipe import service
if len(sys.argv) <= 1:
service.help()
else:
dict(
start=service.start,
stop=service.stop,
restart=service.restart,
autostart=service.autostart,
buffer=service.buffer,
help=service.help,
config=service.config,
debug=service.debug,
status=service.status
)[sys.argv[1]]()