Skip to content

Commit

Permalink
deb,rpm: use cobra generated completions
Browse files Browse the repository at this point in the history
Signed-off-by: Alano Terblanche <[email protected]>
  • Loading branch information
Benehiko authored and thaJeztah committed Jan 24, 2025
1 parent f9f36d4 commit c0d8cf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deb/common/rules
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ override_dh_auto_build:
cd engine && TMP_GOPATH="/go" hack/dockerfile/install/install.sh rootlesskit dynamic
# Build the CLI
cd /go/src/github.com/docker/cli \
&& make DISABLE_WARN_OUTSIDE_CONTAINER=1 VERSION=$(VERSION) GITCOMMIT=$(CLI_GITCOMMIT) LDFLAGS='' dynbinary manpages
&& make DISABLE_WARN_OUTSIDE_CONTAINER=1 VERSION=$(VERSION) GITCOMMIT=$(CLI_GITCOMMIT) LDFLAGS='' dynbinary manpages \
&& build/docker completion bash > contrib/completion/bash/docker \
&& build/docker completion zsh > contrib/completion/zsh/_docker \
&& build/docker completion fish > contrib/completion/fish/docker.fish

# Build buildx plugin
cd /go/src/github.com/docker/buildx \
Expand Down
3 changes: 3 additions & 0 deletions rpm/SPECS/docker-ce-cli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ rm -f /go/src/github.com/docker/cli
ln -snf ${RPM_BUILD_DIR}/src/cli /go/src/github.com/docker/cli
pushd /go/src/github.com/docker/cli
make DISABLE_WARN_OUTSIDE_CONTAINER=1 VERSION=%{_origversion} GITCOMMIT=%{_gitcommit_cli} dynbinary manpages
build/docker completion bash > contrib/completion/bash/docker
build/docker completion zsh > contrib/completion/zsh/_docker
build/docker completion fish > contrib/completion/fish/docker.fish
popd

%check
Expand Down

0 comments on commit c0d8cf0

Please sign in to comment.