Smaller updates
This commit is contained in:
@@ -22,15 +22,16 @@ def read_config(file):
|
||||
@click.option('-c', '--config', default="config.ini", help='give config file')
|
||||
@click.pass_context
|
||||
def cli(ctx, debug, config):
|
||||
click.echo('Debug mode is %s' % ('on' if debug else 'off'))
|
||||
ctx.ensure_object(dict)
|
||||
ctx.obj['DEBUG'] = debug
|
||||
ctx.obj['CONFIG'] = config
|
||||
if debug:
|
||||
click.echo("Debug is enabled")
|
||||
|
||||
@cli.command()
|
||||
@click.pass_context
|
||||
def verify(ctx):
|
||||
"""verify your configuration"""
|
||||
"""verify your configuration - does not do much yet!"""
|
||||
config = read_config(ctx.obj['CONFIG'])
|
||||
|
||||
influx_host = env.get("InfluxdbHost", config['DEFAULT']['InfluxdbHost'])
|
||||
|
||||
Reference in New Issue
Block a user