<s> """<STR_LIT>""" <EOL> import click <EOL> COLORS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> @ click . command ( ) <EOL> @ click . argument ( '<STR_LIT>' , type = click . File ( '<STR_LIT:r>' ) , default = '<STR_LIT:->' ) <EOL> @ click . argument ( '<STR_LIT>' , type = click . File ( '<STR_LIT:w>' ) , default = '<STR_LIT:->' ) <EOL> @ click . option ( '<STR_LIT:-c>' , '<STR_LIT>' , type = click . Choice ( COLORS ) , required = True ) <EOL> def background ( infile , outfile , color ) : <EOL> """<STR_LIT>""" <EOL> for line in infile : <EOL> click . secho ( line , file = outfile , color = color ) <EOL> @ click . command ( ) <EOL> @ click . argument ( '<STR_LIT>' , type = click . File ( '<STR_LIT:r>' ) , default = '<STR_LIT:->' ) <EOL> @ click . argument ( '<STR_LIT>' , type = click . File ( '<STR_LIT:w>' ) , default = '<STR_LIT:->' ) <EOL> @ click . option ( '<STR_LIT:-c>' , '<STR_LIT>' , type = click . Choice ( COLORS ) , required = True ) <EOL> def color ( infile , outfile , color ) : <EOL> """<STR_LIT>""" <EOL> for line in infile : <EOL> click . echo ( line , color = color , file = outfile ) </s>
