mirror of
https://github.com/linka-cloud/d2vm.git
synced 2024-11-25 09:06: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:
parent
f1557d104d
commit
f855fe9c7a
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ images
|
|||||||
.goreleaser.yaml
|
.goreleaser.yaml
|
||||||
docs/build
|
docs/build
|
||||||
docs-src
|
docs-src
|
||||||
|
/completions
|
||||||
|
@ -15,6 +15,7 @@ project_name: d2vm
|
|||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
- make completions
|
||||||
builds:
|
builds:
|
||||||
- main: ./cmd/d2vm
|
- main: ./cmd/d2vm
|
||||||
env:
|
env:
|
||||||
@ -38,9 +39,13 @@ snapshot:
|
|||||||
release:
|
release:
|
||||||
prerelease: auto
|
prerelease: auto
|
||||||
extra_files:
|
extra_files:
|
||||||
- glob: README.md
|
- glob: LICENCE
|
||||||
- glob: LICENSE
|
|
||||||
- glob: pgp.pub
|
- glob: pgp.pub
|
||||||
|
archives:
|
||||||
|
- files:
|
||||||
|
- LICENCE
|
||||||
|
- README.md
|
||||||
|
- completions/*
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
filters:
|
filters:
|
||||||
|
8
Makefile
8
Makefile
@ -101,6 +101,14 @@ build: bin
|
|||||||
release: bin
|
release: bin
|
||||||
@VERSION=$(VERSION) IMAGE=$(DOCKER_IMAGE) goreleaser release --rm-dist --parallelism 8
|
@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
|
.PHONY: examples
|
||||||
examples: build-dev
|
examples: build-dev
|
||||||
@mkdir -p examples/build
|
@mkdir -p examples/build
|
||||||
|
Loading…
Reference in New Issue
Block a user