Skip to content

Commit c062061

Browse files
committed
Add notifications to image removal code
Signed-off-by: Joe Block <[email protected]>
1 parent c88105f commit c062061

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Diff for: lima-plugin

+10-5
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ function pullImage() {
194194
if [[ "$VM" != 'default' ]]; then
195195
export LIMA_INSTANCE="$VM"
196196
fi
197-
displayNotification lima "Pulling ${imageName}..."
198-
if lima nerdctl image pull "$imageName"; then
199-
displayNotification Lima "Pulled $imageName"
197+
displayNotification lima "Pulling ${imageName} on ${VM}..."
198+
if lima nerdctl image pull "${imageName}"; then
199+
displayNotification Lima "Pulled ${imageName}"
200200
else
201-
displayAlert Lima "Failed to pull $imageName"
201+
displayAlert Lima "Failed to pull ${imageName} on ${VM}"
202202
fi
203203
}
204204

@@ -212,7 +212,12 @@ function rmImage() {
212212
if [[ "$VM" != 'default' ]]; then
213213
export LIMA_INSTANCE="$VM"
214214
fi
215-
lima nerdctl image rm "$imageName"
215+
displayNotification lima "Removing ${imageName} from ${VM}..."
216+
if lima nerdctl image rm "${imageName}"; then
217+
displayNotification Lima "Removed ${imageName}"
218+
else
219+
displayAlert Lima "Failed to remove ${imageName}"
220+
fi
216221
}
217222

218223
function processMenuCommand() {

0 commit comments

Comments
 (0)