def check_config(db, level):
    """Show current configuration for shell"""
    if level == 'global':
        configuration = config.read(config.HOMEDIR, '.passpierc')
    elif level == 'local':
        configuration = config.read(os.path.join(db.path))
    elif level == 'current':
        configuration = db.config

    if configuration:
        click.echo(yaml.safe_dump(configuration, default_flow_style=False))
def check_config ( db , level ) : if level == 'global' : configuration = config . read ( config . HOMEDIR , '.passpierc' ) elif level == 'local' : configuration = config . read ( os . path . join ( db . path ) ) elif level == 'current' : configuration = db . config if configuration : click . echo ( yaml . safe_dump ( configuration , default_flow_style = False ) )
Show current configuration for shell