From 775057a77fdd54a9a4143f8dd29d282e503ebc8f Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Wed, 27 Nov 2019 19:21:18 +0100 Subject: [PATCH] refactor command "list" to "profiles" --- dotdrop/dotdrop.py | 4 ++-- dotdrop/options.py | 4 ++-- tests/helpers.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index 5e20865..bfed6a6 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -604,10 +604,10 @@ def main(): ret = True try: - if o.cmd_list: + if o.cmd_profiles: # list existing profiles if o.debug: - LOG.dbg('running cmd: list') + LOG.dbg('running cmd: profiles') cmd_list_profiles(o) elif o.cmd_files: diff --git a/dotdrop/options.py b/dotdrop/options.py index 1be3254..9457717 100644 --- a/dotdrop/options.py +++ b/dotdrop/options.py @@ -61,7 +61,7 @@ Usage: dotdrop remove [-Vbfdk] [-c ] [-p ] [...] dotdrop files [-VbT] [-c ] [-p ] dotdrop detail [-Vb] [-c ] [-p ] [...] - dotdrop list [-Vb] [-c ] + dotdrop profiles [-Vb] [-c ] dotdrop --help dotdrop --version @@ -189,7 +189,7 @@ class Options(AttrMonitor): def _apply_args(self): """apply cli args as attribute""" # the commands - self.cmd_list = self.args['list'] + self.cmd_profiles = self.args['profiles'] self.cmd_files = self.args['files'] self.cmd_install = self.args['install'] self.cmd_compare = self.args['compare'] diff --git a/tests/helpers.py b/tests/helpers.py index 2d57838..8b35ed0 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -129,7 +129,7 @@ def _fake_args(): args['--show-patch'] = False args['--force-actions'] = False # cmds - args['list'] = False + args['profiles'] = False args['files'] = False args['install'] = False args['compare'] = False