Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-s committed Jun 26, 2019
1 parent 1a1db4d commit fce85d6
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 1,405 deletions.
3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ docs/_build/
*COMMIT_MSG

.qbcache/

.coveragerc

17 changes: 11 additions & 6 deletions agent_packager/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
"""

from __future__ import absolute_import

import sys
import logging
from docopt import docopt
import agent_packager.logger as logger

import agent_packager.packager as packager

lgr = logger.init()
logging.basicConfig(stream=sys.stderr, level=logging.INFO)
logger = logging.getLogger(__name__)


def ver_check():
Expand All @@ -39,15 +43,16 @@ def ver_check():
def _run(test_options=None):
version = ver_check()
options = test_options or docopt(__doc__, version=version)
packager.set_global_verbosity_level(options.get('--verbose'))
lgr.debug(options)
is_verbose = options.get('--verbose')
if is_verbose:
logging.root.setLevel(logging.DEBUG)
logger.debug("Command-line options: %s", str(options))

packager.create(
config_file=options.get('--config'),
force=options.get('--force'),
dryrun=options.get('--dryrun'),
no_validate=options.get('--no-validation'),
verbose=options.get('--verbose')
no_validate=options.get('--no-validation')
)

def main():
Expand Down
Loading

0 comments on commit fce85d6

Please sign in to comment.