@task(help=dict(<EOL>local="<STR_LIT>",<EOL>))<EOL>def freeze(ctx, local=False):
cmd = '<STR_LIT>'.format('<STR_LIT>' if local else '<STR_LIT>')<EOL>frozen = ctx.run(cmd, hide='<STR_LIT>').stdout.replace('<STR_LIT>', '<STR_LIT:#>')<EOL>with io.open('<STR_LIT>', '<STR_LIT:w>', encoding='<STR_LIT:ascii>') as out:<EOL><INDENT>out.write("<STR_LIT>".format(isodate()))<EOL>out.write(frozen)<EOL><DEDENT>notify.info("<STR_LIT>".format(len(frozen.splitlines()),))<EOL>
Freeze currently installed requirements.