2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2024-11-29 02:56:24 +00:00

Makefile: add completions generation

goreleaser: fix typo, add completions to release archive

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
Adphi 2022-09-12 10:10:28 +02:00
parent f1557d104d
commit f855fe9c7a
Signed by: adphi
GPG Key ID: 46BE4062DB2397FF
3 changed files with 16 additions and 2 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ images
.goreleaser.yaml
docs/build
docs-src
/completions

View File

@ -15,6 +15,7 @@ project_name: d2vm
before:
hooks:
- go mod tidy
- make completions
builds:
- main: ./cmd/d2vm
env:
@ -38,9 +39,13 @@ snapshot:
release:
prerelease: auto
extra_files:
- glob: README.md
- glob: LICENSE
- glob: LICENCE
- glob: pgp.pub
archives:
- files:
- LICENCE
- README.md
- completions/*
changelog:
sort: asc
filters:

View File

@ -101,6 +101,14 @@ build: bin
release: bin
@VERSION=$(VERSION) IMAGE=$(DOCKER_IMAGE) goreleaser release --rm-dist --parallelism 8
.PHONY: completions
completions: .build
@rm -rf completions
@mkdir -p completions
@for shell in bash zsh fish powershell; do \
d2vm completion $$shell > completions/d2vm.$$shell; \
done
.PHONY: examples
examples: build-dev
@mkdir -p examples/build