Add main driver function for comfortable_swipe
This commit is contained in:
parent
fec9226129
commit
f789ed4ee5
19
comfortable_swipe/__main__.py
Normal file
19
comfortable_swipe/__main__.py
Normal 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]]()
|
||||
Loading…
Reference in New Issue
Block a user