Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 1ae45ae

Browse files
committed
Fixed completion for lima #2691
1 parent a306479 commit 1ae45ae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/lima/Dockerfile.template

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
#syntax=docker/dockerfile:1.4.3
22

33
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/yasu:${ref} AS yasu
45
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
56

67
ARG name
78
ARG version
9+
COPY --from=yasu / /
810

911
RUN <<EOF
1012
curl --silent --location "https://github.com/lima-vm/lima/releases/download/v${version}/lima-${version}-Linux-${arch}.tar.gz" \
1113
| tar --extract --gzip --directory="${prefix}${target}" --no-same-owner
12-
"${prefix}${target}/bin/limactl" completion bash >"${prefix}${target}/share/bash-completion/completions/limactl"
13-
"${prefix}${target}/bin/limactl" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/limactl.fish"
14-
"${prefix}${target}/bin/limactl" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_limactl"
14+
yasu nobody "${prefix}${target}/bin/limactl" completion bash >"${prefix}${target}/share/bash-completion/completions/limactl"
15+
yasu nobody "${prefix}${target}/bin/limactl" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/limactl.fish"
16+
yasu nobody "${prefix}${target}/bin/limactl" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_limactl"
1517
EOF

0 commit comments

Comments
 (0)