Commit d1f76358 authored by Patrick Godwin's avatar Patrick Godwin

__main__.py: make aggregator CLI option optional

parent 93beb237
Pipeline #77025 failed with stages
in 2 minutes and 32 seconds
......@@ -9,13 +9,17 @@ import argparse
import logging
import signal
from . import aggregator
from . import deploy
from . import mock
from . import report
from . import serve
from . import utils
try:
from . import aggregator
except ImportError:
aggregator = None
#-------------------------------------------------
### set up CLI commands
......@@ -29,8 +33,9 @@ subparser = parser.add_subparsers(
)
subparser.required = True
p = utils.append_subparser(subparser, 'aggregate', aggregator.main)
aggregator._add_parser_args(p)
if aggregator:
p = utils.append_subparser(subparser, 'aggregate', aggregator.main)
aggregator._add_parser_args(p)
p = utils.append_subparser(subparser, 'deploy', deploy.main)
deploy._add_parser_args(p)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment