1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 19:39:15 +00:00

refactor command "list" to "profiles"

This commit is contained in:
deadc0de6
2019-11-27 19:21:18 +01:00
parent 8844084999
commit 775057a77f
3 changed files with 5 additions and 5 deletions

View File

@@ -604,10 +604,10 @@ def main():
ret = True ret = True
try: try:
if o.cmd_list: if o.cmd_profiles:
# list existing profiles # list existing profiles
if o.debug: if o.debug:
LOG.dbg('running cmd: list') LOG.dbg('running cmd: profiles')
cmd_list_profiles(o) cmd_list_profiles(o)
elif o.cmd_files: elif o.cmd_files:

View File

@@ -61,7 +61,7 @@ Usage:
dotdrop remove [-Vbfdk] [-c <path>] [-p <profile>] [<path>...] dotdrop remove [-Vbfdk] [-c <path>] [-p <profile>] [<path>...]
dotdrop files [-VbT] [-c <path>] [-p <profile>] dotdrop files [-VbT] [-c <path>] [-p <profile>]
dotdrop detail [-Vb] [-c <path>] [-p <profile>] [<key>...] dotdrop detail [-Vb] [-c <path>] [-p <profile>] [<key>...]
dotdrop list [-Vb] [-c <path>] dotdrop profiles [-Vb] [-c <path>]
dotdrop --help dotdrop --help
dotdrop --version dotdrop --version
@@ -189,7 +189,7 @@ class Options(AttrMonitor):
def _apply_args(self): def _apply_args(self):
"""apply cli args as attribute""" """apply cli args as attribute"""
# the commands # the commands
self.cmd_list = self.args['list'] self.cmd_profiles = self.args['profiles']
self.cmd_files = self.args['files'] self.cmd_files = self.args['files']
self.cmd_install = self.args['install'] self.cmd_install = self.args['install']
self.cmd_compare = self.args['compare'] self.cmd_compare = self.args['compare']

View File

@@ -129,7 +129,7 @@ def _fake_args():
args['--show-patch'] = False args['--show-patch'] = False
args['--force-actions'] = False args['--force-actions'] = False
# cmds # cmds
args['list'] = False args['profiles'] = False
args['files'] = False args['files'] = False
args['install'] = False args['install'] = False
args['compare'] = False args['compare'] = False