mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Bit of tidying up
This commit is contained in:
parent
d2f68cb536
commit
57d1b2b6db
1 changed files with 2 additions and 10 deletions
|
@ -72,9 +72,7 @@ def init(logging_config=None, **kwargs):
|
|||
|
||||
|
||||
# Easy access to interfaces
|
||||
def api(
|
||||
namespaces, host="localhost", port=80, routes={}
|
||||
):
|
||||
def api(namespaces, host="localhost", port=80, routes={}):
|
||||
"""Web server (API) interface
|
||||
|
||||
Run a HTTP server with the moulinette for an API usage.
|
||||
|
@ -107,13 +105,7 @@ def api(
|
|||
return 0
|
||||
|
||||
|
||||
def cli(
|
||||
namespaces,
|
||||
args,
|
||||
output_as=None,
|
||||
timeout=None,
|
||||
parser_kwargs={},
|
||||
):
|
||||
def cli(namespaces, args, output_as=None, timeout=None, parser_kwargs={}):
|
||||
"""Command line interface
|
||||
|
||||
Execute an action with the moulinette from the CLI and print its
|
||||
|
|
Loading…
Add table
Reference in a new issue