Skip to content
Permalink
Browse files

fix(composer): add compose api to api.py

  • Loading branch information...
hanxiao committed Jul 16, 2019
1 parent 70ba3fc commit 3423ec832c04aad22a6d897be36486e0cb3372a1
Showing with 6 additions and 1 deletion.
  1. +5 −0 gnes/cli/api.py
  2. +1 −1 gnes/cli/parser.py
@@ -34,6 +34,11 @@ def route(args):
es.join()


def compose(args):
from ..composer.base import YamlGraph
YamlGraph(args).build_all()


def frontend(args):
from ..service.grpc import GRPCFrontend
import threading
@@ -239,5 +239,5 @@ def get_main_parser():
set_preprocessor_service_parser(sp.add_parser('preprocess', help='start a preprocessor service'))
set_http_service_parser(sp.add_parser('client_http', help='start a http service'))
set_cli_client_parser(sp.add_parser('client_cli', help='start a grpc client'))
set_composer_parser(sp.add_parser('compose', help='start a GNES composer'))
set_composer_parser(sp.add_parser('compose', help='start a GNES composer to simplify config generation'))
return parser

0 comments on commit 3423ec8

Please sign in to comment.
You can’t perform that action at this time.