@click.command('remote-urls')
def remote_urls():
 for app in get_apps():
  repo_dir = get_repo_dir(app)
  if os.path.exists(os.path.join(repo_dir, '.git')):
   remote = get_remote(app)
   remote_url = subprocess.check_output(['git', 'config', '--get', 'remote.{}.url'.format(remote)], cwd=repo_dir).strip()
   print '{app} DCTB {remote_url}'.format(app=app, remote_url=remote_url)

@ click . command ( 'remote-urls' ) def remote_urls ( ) : for app in get_apps ( ) : repo_dir = get_repo_dir ( app ) if os . path . exists ( os . path . join ( repo_dir , '.git' ) ) : remote = get_remote ( app ) remote_url = subprocess . check_output ( [ 'git' , 'config' , '--get' , 'remote.{}.url' . format ( remote ) ] , cwd = repo_dir ) . strip ( ) print '{app} DCTB {remote_url}' . format ( app = app , remote_url = remote_url )
show apps remote url .