mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 22:39:43 +00:00
refactor command "list" to "profiles"
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -61,7 +61,7 @@ Usage:
|
||||
dotdrop remove [-Vbfdk] [-c <path>] [-p <profile>] [<path>...]
|
||||
dotdrop files [-VbT] [-c <path>] [-p <profile>]
|
||||
dotdrop detail [-Vb] [-c <path>] [-p <profile>] [<key>...]
|
||||
dotdrop list [-Vb] [-c <path>]
|
||||
dotdrop profiles [-Vb] [-c <path>]
|
||||
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']
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user