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:
@@ -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:
|
||||||
|
|||||||
@@ -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']
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user