fix(menu): preview current update selection
This commit is contained in:
1 parent
34adfa6b3e
commit
d83ad0ec12
3 files changed
+5
-5
No files matched your search
@@ -92,7 +92,7 @@ function Select-ConfiguredPlugins {
|
||||
$entries = @(Get-ConfiguredPluginEntries -RepositoryRoot $RepositoryRoot)
|
||||
$toggleable = @($entries)
|
||||
$fixed = @($entries | Where-Object { $toggleable -notcontains $_ })
|
||||
if ($DryRun -or $toggleable.Count -eq 0) { return @{ Selected = $entries; Deselected = @() } }
|
||||
if ($toggleable.Count -eq 0 -or ($DryRun -and $Mode -eq 'Install')) { return @{ Selected = $entries; Deselected = @() } }
|
||||
|
||||
$referenceClients = if ($Client -eq 'Both') { @('Claude','Codex') } else { @($Client) }
|
||||
$installed = @{}
|
||||
@@ -116,7 +116,7 @@ function Select-ConfiguredPlugins {
|
||||
$found
|
||||
})
|
||||
$names = @($toggleable | ForEach-Object { $_.name })
|
||||
$checked = Read-PluginToggleSelection -Names $names -Checked $checked
|
||||
if (-not $DryRun) { $checked = Read-PluginToggleSelection -Names $names -Checked $checked }
|
||||
|
||||
$selected = @()
|
||||
$deselected = @()
|
||||
|
||||
@@ -107,7 +107,7 @@ select_configured_plugins() {
|
||||
if plugin_toggleable "$root" "$name" "$client"; then toggle_names+=("$name"); else fixed_names+=("$name"); fi
|
||||
done < <(get_plugin_names "$root")
|
||||
|
||||
if [ "$dry_run" = true ] || [ ${#toggle_names[@]} -eq 0 ]; then
|
||||
if [ ${#toggle_names[@]} -eq 0 ] || { [ "$dry_run" = true ] && [ "$mode" = Install ]; }; then
|
||||
selected_ref=("${all_names[@]}")
|
||||
return 0
|
||||
fi
|
||||
@@ -144,7 +144,7 @@ select_configured_plugins() {
|
||||
checked+=("$found")
|
||||
done
|
||||
|
||||
read_plugin_toggle_selection toggle_names checked
|
||||
if [ "$dry_run" != true ]; then read_plugin_toggle_selection toggle_names checked; fi
|
||||
|
||||
local i
|
||||
for ((i = 0; i < ${#toggle_names[@]}; i++)); do
|
||||
|
||||
Reference in new issue
Block a user