code: 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))
docs: Show current configuration for shell