Fixed bug with listing installed subcommands.
The command names of installed subcommands are now embedded under a 'command' key instead of living at the top level. This commit fixes the 'merge_installed()' function to index into the dictionary of subcommands properly to extract the names now that this change has been introduced.
This commit is contained in:
@@ -156,7 +156,8 @@ def merge_installed(apps, subcommands, app_only, cli_only):
|
||||
del pkg['appId']
|
||||
indexed_apps[name] = pkg
|
||||
|
||||
indexed_subcommands = {subcmd['name']: subcmd for subcmd in subcommands}
|
||||
indexed_subcommands = {subcmd['command']['name']: subcmd
|
||||
for subcmd in subcommands}
|
||||
|
||||
merged = []
|
||||
for name, app in indexed_apps.items():
|
||||
|
||||
Reference in New Issue
Block a user