<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def completion(ctx):
    '''Generate bash completion script'''
    header(completion.__doc__)
    with ctx.cd(ROOT):
        ctx.run('_bumpr_COMPLETE=source bumpr > bumpr-complete.sh', pty=True)
    success('Completion generated in bumpr-complete.sh')