added frappy gui

This commit is contained in:
2021-02-26 16:06:14 +01:00
parent 7670e1d693
commit 10c01a7fdd
3 changed files with 70 additions and 20 deletions

View File

@ -30,22 +30,7 @@ this code is currently used:
from servicemanager.base import ServiceManager, ServiceDown, UsageError, get_config
from servicemanager.nicosman import NicosManager
from servicemanager.seaman import SeaManager
class FrappyManager(ServiceManager):
group = 'frappy'
services = ('main', 'stick', 'addons')
USAGE = """
Usage:
frappy list [<instance>]
frappy start <instance> <service> <cfgfiles>
frappy restart <instance> [<service>] [<cfgfiles>]
frappy stop <instance> [<service>]
<service> is one of main, stick, addons
<instance> is one of %s
"""
from servicemanager.frappyman import FrappyManager
class SewebManager(ServiceManager):
@ -85,7 +70,7 @@ def run(group, arglist):
except AttributeError:
raise UsageError("do not know '%s'" % ' '.join([serv.group, action] + arglist))
except UsageError as e:
print(repr(e))
print(serv.usage())
serv.usage()
print('ERROR:', str(e))