<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , print_function <EOL> import click <EOL> from sentry . runner . decorators import configuration <EOL> @ click . group ( ) <EOL> def config ( ) : <EOL> "<STR_LIT>" <EOL> @ config . command ( ) <EOL> @ click . argument ( '<STR_LIT>' , default = '<STR_LIT:*>' , required = False ) <EOL> @ configuration <EOL> def list ( pattern ) : <EOL> "<STR_LIT>" <EOL> from fnmatch import fnmatch <EOL> from sentry . options import default_manager as manager <EOL> for key in manager . all ( ) : <EOL> if fnmatch ( key . name , pattern ) : <EOL> click . echo ( '<STR_LIT>' % ( key . name , key . type . name . upper ( ) ) ) <EOL> @ config . command ( ) <EOL> @ click . option ( '<STR_LIT>' , '<STR_LIT>' , default = False , is_flag = True , help = '<STR_LIT>' ) <EOL> @ click . argument ( '<STR_LIT>' ) <EOL> @ configuration <EOL> def get ( option , silent ) : <EOL> "<STR_LIT>" <EOL> from django . conf import settings <EOL> from sentry . options import default_manager as manager <EOL> from sentry . options . manager import UnknownOption <EOL> try : <EOL> key = manager . lookup_key ( option ) <EOL> except UnknownOption : <EOL> raise click . ClickException ( '<STR_LIT>' % option ) <EOL> value = manager . get ( key . name ) <EOL> if silent : <EOL> click . echo ( value ) <EOL> return <EOL> click . echo ( '<STR_LIT>' % key . type . name . upper ( ) ) <EOL> click . echo ( '<STR_LIT>' % settings . SENTRY_OPTIONS . get ( key . name , '<STR_LIT>' ) ) <EOL> click . echo ( '<STR_LIT>' % value ) <EOL> @ config . command ( ) <EOL> @ click . argument ( '<STR_LIT>' ) <EOL> @ click . argument ( '<STR_LIT:value>' ) <EOL> @ configuration <EOL> def set ( option , value ) : <EOL> "<STR_LIT>" <EOL> from sentry import options <EOL> from sentry . options . manager import UnknownOption <EOL> try : <EOL> options . set ( option , value ) <EOL> except UnknownOption : <EOL> raise click . ClickException ( '<STR_LIT>' % option ) <EOL> except TypeError as e : <EOL> raise click . ClickException ( unicode ( e ) ) <EOL> @ config . command ( ) <EOL> @ click . option ( '<STR_LIT>' , default = False , is_flag = True , help = '<STR_LIT>' ) <EOL> @ click . argument ( '<STR_LIT>' ) <EOL> @ configuration <EOL> def delete ( option , no_input ) : <EOL> "<STR_LIT>" <EOL> from sentry import options <EOL> from sentry . options . manager import UnknownOption <EOL> if not no_input : <EOL> click . confirm ( '<STR_LIT>' % option , default = False , abort = True ) <EOL> try : <EOL> options . delete ( option ) <EOL> except UnknownOption : <EOL> raise click . ClickException ( '<STR_LIT>' % option ) <EOL> @ config . command ( name = '<STR_LIT>' ) <EOL> def generate_secret_key ( ) : <EOL> "<STR_LIT>" <EOL> from sentry . runner . settings import generate_secret_key <EOL> click . echo ( generate_secret_key ( ) ) </s>
