introduce wildcards for <instance>

This commit is contained in:
2021-12-06 14:39:04 +01:00
parent bb3c72acc9
commit f411460c2c
5 changed files with 71 additions and 28 deletions

View File

@ -52,15 +52,16 @@ class SeaManager(ServiceManager):
Usage:
sea gui <instance>
sea <instance> # the same as sea gui <instance>
sea cli <instance> # the same as old seacmd
sea start <instance> [<service>] # the same as old 'monit start sea'
sea restart <instance> [<service>]
sea stop <instance> [<service>]
sea list [<instance>]
sea <instance> # the same as sea gui <instance>
sea cli <instance> # the same as old seacmd
sea start <instance> [<service>] * # the same as old 'monit start sea'
sea restart <instance> [<service>] *
sea stop <instance> [<service>] *
sea list [<instance>] *
<service> is one of sea, graph
%s
* wildcards allowed, using '.' to replace 0 or more arbitrary characters in <instance>
"""
def do_cli(self, ins):