def _info(*pkgs):
 cmd = 'brew info --json=v1 {0}'.format(' '.join(pkgs))
 brew_result = _call_brew(cmd)
 if brew_result['retcode']:
  log.error('Failed to get info about packages: {0}'.format(' '.join(pkgs)))
  return {}
 output = json.loads(brew_result['stdout'])
 return dict(zip(pkgs, output))

def _info ( * pkgs ) : cmd = 'brew info --json=v1 {0}' . format ( ' ' . join ( pkgs ) ) brew_result = _call_brew ( cmd ) if brew_result [ 'retcode' ] : log . error ( 'Failed to get info about packages: {0}' . format ( ' ' . join ( pkgs ) ) ) return { } output = json . loads ( brew_result [ 'stdout' ] ) return dict ( zip ( pkgs , output ) )
get all info brew can provide about a list of packages .