diff --git a/user b/user index b6624f0..ac0a3e3 100755 --- a/user +++ b/user @@ -137,21 +137,21 @@ def associate_binary(association, container): @cli.command("dissociate") -@click.argument('association') -def associate_binary(association): +@click.argument('dissociation') +def dissociate_binary(dissociation): ''' Remove an association ''' - if not os.path.exists(os.path.expanduser(f'~/.local/bin/blend_bin/{association}')): - error(f'{colors.bold}{association}{colors.reset} does not exist') + if not os.path.exists(os.path.expanduser(f'~/.local/bin/blend_bin/{dissociation}')): + error(f'{colors.bold}{dissociation}{colors.reset} does not exist') exit() if os.path.isfile(os.path.expanduser('~/.local/bin/blend_bin/.associations')): - subprocess.run(['sed', '-i', f's/^{association}\\x0//g', + subprocess.run(['sed', '-i', f's/^{dissociation}\\x0//g', os.path.expanduser('~/.local/bin/blend_bin/.associations')]) subprocess.run( - ['rm', '-f', os.path.expanduser(f'~/.local/bin/blend_bin/{association}')]) - association_msg(f'dissociated {colors.bold}{association}') + ['rm', '-f', os.path.expanduser(f'~/.local/bin/blend_bin/{dissociation}')]) + association_msg(f'dissociated {colors.bold}{dissociation}') @cli.command("create-container")