Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(composer): add compose api to api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Jul 16, 2019
1 parent 70ba3fc commit 3423ec8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gnes/cli/api.py
Expand Up @@ -34,6 +34,11 @@ def route(args):
es.join() es.join()




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


def frontend(args): def frontend(args):
from ..service.grpc import GRPCFrontend from ..service.grpc import GRPCFrontend
import threading import threading
Expand Down
2 changes: 1 addition & 1 deletion gnes/cli/parser.py
Expand Up @@ -239,5 +239,5 @@ def get_main_parser():
set_preprocessor_service_parser(sp.add_parser('preprocess', help='start a preprocessor service')) 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_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_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 return parser

0 comments on commit 3423ec8

Please sign in to comment.