original_docstring: Return pretty-formatted item.
docstring: Return pretty-formatted item.
docstring_tokens: Return pretty - formatted item .
code: def format(item):
          """Return pretty-formatted item."""
          schema = [
              ('aws_account', 'aws_account', None),
              ('aws_admin', 'aws_admin', None),
              ('aws_region', 'aws_region', None),
              ('docker-registries', 'docker_registries', ','.join),
              ('disk-size', 'disk_size', None),
              ('hostgroups', 'hostgroups', ','.join),
              ('image', 'image', None),
              ('instance-profile', 'instance_profile', None),
              ('realm', 'realm', None),
              ('secgroup', 'secgroup', None),
              ('size', 'size', None),
              ('subnets', 'subnets', ','.join),
              ('s3_registry_bucket', 's3_registry_bucket', None),
              ('tls_certs', 'tls_certs', None),
          ]
  
          format_item = tablefmt.make_dict_to_table(schema)
          format_list = tablefmt.make_list_to_table(schema)
  
          if isinstance(item, list):
              return format_list(item)
          else:
              return format_item(item)
code_tokens: def format ( item ) : schema = [ ( 'aws_account' , 'aws_account' , None ) , ( 'aws_admin' , 'aws_admin' , None ) , ( 'aws_region' , 'aws_region' , None ) , ( 'docker-registries' , 'docker_registries' , ',' . join ) , ( 'disk-size' , 'disk_size' , None ) , ( 'hostgroups' , 'hostgroups' , ',' . join ) , ( 'image' , 'image' , None ) , ( 'instance-profile' , 'instance_profile' , None ) , ( 'realm' , 'realm' , None ) , ( 'secgroup' , 'secgroup' , None ) , ( 'size' , 'size' , None ) , ( 'subnets' , 'subnets' , ',' . join ) , ( 's3_registry_bucket' , 's3_registry_bucket' , None ) , ( 'tls_certs' , 'tls_certs' , None ) , ] format_item = tablefmt . make_dict_to_table ( schema ) format_list = tablefmt . make_list_to_table ( schema ) if isinstance ( item , list ) : return format_list ( item ) else : return format_item ( item )
short_docstring: Return pretty-formatted item.
short_docstring_tokens: Return pretty - formatted item .
comment: """Return pretty-formatted item."""