@dsym.command(name='sdks', short_help='List SDKs')
@click.option('--sdk', help='Only include the given SDK instead of all.')
@click.option('--version', help='Optionally a version filter.  For instance 9 returns all versions 9.*, 9.1 returns 9.1.* etc.')
@configuration
def sdks(sdk, version):
 from sentry.models import DSymSDK
 last_prefix = None
 click.secho(('  %-8s  %-10s  %-12s %-8s %s' % ('SDK', 'Version', 'Build', 'CPU', 'Bundles')), fg='cyan')
 click.secho(('-' * click.get_terminal_size()[0]), fg='yellow')
 for sdk in DSymSDK.objects.enumerate_sdks(sdk=sdk, version=version):
  prefix = ('  %-8s  %-10s  ' % (sdk['sdk_name'], sdk['version']))
  if (prefix == last_prefix):
   prefix = (' ' * len(prefix))
  else:
   last_prefix = prefix
  click.echo(('%s%-12s %-8s %d' % (prefix, sdk['build'], sdk['cpu_name'], sdk['bundle_count'])))

@ dsym . command ( name = 'sdks' , short_help = 'List SDKs' ) @ click . option ( '--sdk' , help = 'Only include the given SDK instead of all.' ) @ click . option ( '--version' , help = 'Optionally a version filter.  For instance 9 returns all versions 9.*, 9.1 returns 9.1.* etc.' ) @ configuration def sdks ( sdk , version ) : from sentry . models import DSymSDK last_prefix = None click . secho ( ( '  %-8s  %-10s  %-12s %-8s %s' % ( 'SDK' , 'Version' , 'Build' , 'CPU' , 'Bundles' ) ) , fg = 'cyan' ) click . secho ( ( '-' * click . get_terminal_size ( ) [ 0 ] ) , fg = 'yellow' ) for sdk in DSymSDK . objects . enumerate_sdks ( sdk = sdk , version = version ) : prefix = ( '  %-8s  %-10s  ' % ( sdk [ 'sdk_name' ] , sdk [ 'version' ] ) ) if ( prefix == last_prefix ) : prefix = ( ' ' * len ( prefix ) ) else : last_prefix = prefix click . echo ( ( '%s%-12s %-8s %d' % ( prefix , sdk [ 'build' ] , sdk [ 'cpu_name' ] , sdk [ 'bundle_count' ] ) ) )
print a list of all installed sdks and a breakdown of the symbols contained within .