@click.command()<EOL>@click.pass_context<EOL>def overlay(ctx):  
args = ctx.obj.get('<STR_LIT:args>')<EOL>filename = args.get('<STR_LIT>')<EOL>debug = args.get('<STR_LIT>')<EOL>_setup(filename)<EOL>for c in config.config(filename):<EOL><INDENT>with fasteners.InterProcessLock(c.lock_file):<EOL><INDENT>util.print_info('<STR_LIT>'.format(c.name))<EOL>if not os.path.exists(c.src):<EOL><INDENT>git.clone(c.name, c.git, c.src, debug=debug)<EOL><DEDENT>if c.dst:<EOL><INDENT>git.extract(c.src, c.dst, c.version, debug=debug)<EOL>post_commands = {c.dst: c.post_commands}<EOL><DEDENT>else:<EOL><INDENT>git.overlay(c.src, c.files, c.version, debug=debug)<EOL>post_commands = {<EOL>conf.dst: conf.post_commands<EOL>for conf in c.files<EOL>}<EOL><DEDENT>for dst, commands in post_commands.items():<EOL><INDENT>for command in commands:<EOL><INDENT>msg = '<STR_LIT>'.format(command, dst)<EOL>util.print_info(msg)<EOL>cmd = util.build_sh_cmd(command, cwd=dst)<EOL>util.run_command(cmd, debug=debug)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Install gilt dependencies