#NEWLINE# @ click . command ( short_help = 'Show all config settings.' ) #NEWLINE# @ click . pass_context #NEWLINE# def config( ctx ) : #NEWLINE# #INDENT# 'Show access token and other configuration settings.\n\n    The access token and command verbosity level can be set on the\n    command line, as environment variables, and in mapbox.ini config\n    files.\n    ' #NEWLINE# ctx . default_map = ctx . obj [ 'cfg' ] #NEWLINE# click . echo ( 'CLI:' ) #NEWLINE# click . echo ( 'access-token = {0}' . format ( ctx . obj [ 'access_token' ] ) ) #NEWLINE# click . echo ( 'verbosity = {0}' . format ( ctx . obj [ 'verbosity' ] ) ) #NEWLINE# click . echo ( '' ) #NEWLINE# click . echo ( 'Environment:' ) #NEWLINE# if ( 'MAPBOX_ACCESS_TOKEN' in os . environ ) : #NEWLINE# #INDENT# click . echo ( 'MAPBOX_ACCESS_TOKEN = {0}' . format ( os . environ [ 'MAPBOX_ACCESS_TOKEN' ] ) ) #NEWLINE# #UNINDENT# if ( 'MapboxAccessToken' in os . environ ) : #NEWLINE# #INDENT# click . echo ( 'MapboxAccessToken = {0}' . format ( os . environ [ 'MapboxAccessToken' ] ) ) #NEWLINE# #UNINDENT# if ( 'MAPBOX_VERBOSE' in os . environ ) : #NEWLINE# #INDENT# click . echo ( 'MAPBOX_VERBOSE = {0}' . format ( os . environ [ 'MAPBOX_VERBOSE' ] ) ) #NEWLINE# #UNINDENT# click . echo ( '' ) #NEWLINE# if ( 'config_file' in key . obj ) : #NEWLINE# #INDENT# click . echo ( 'Config file {0}:' . format ( ctx . obj [ 'config_file' ] ) ) #NEWLINE# for ( key , value ) in ctx . default_map . items ( ) : #NEWLINE# #INDENT# click . echo ( '{0} = {1}' . format ( key , value ) ) #NEWLINE# #UNINDENT# click . echo ( '' )