File tree Expand file tree Collapse file tree 5 files changed +14
-14
lines changed
internal/cli/root/openapi Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 44
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
45
with :
46
46
labels : failed-release
47
- title : " Releasing openapicli v${{ inputs.version_number }} failed at the tag creation step :scream_cat:"
47
+ title : " Releasing foascli v${{ inputs.version_number }} failed at the tag creation step :scream_cat:"
48
48
body : See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
49
49
50
50
run-tests :
87
87
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88
88
with :
89
89
labels : failed-release
90
- title : " Releasing openapicli v${{ inputs.version_number }} failed at the goreleaser step :scream_cat:"
90
+ title : " Releasing foascli v${{ inputs.version_number }} failed at the goreleaser step :scream_cat:"
91
91
body : See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
Original file line number Diff line number Diff line change 1
1
# Visit https://goreleaser.com for documentation on how to customize this
2
2
# behavior.
3
- project_name : openapicli
3
+ project_name : foascli
4
4
before :
5
5
hooks :
6
6
# this is just an example and not a requirement for provider building/publishing
9
9
- << : &build_defaults
10
10
env :
11
11
- CGO_ENABLED=0
12
- binary : bin/openapicli
13
- main : ./cmd/openapicli .go
12
+ binary : bin/foascli
13
+ main : ./cmd/foascli .go
14
14
ldflags :
15
15
- -s -w -X github.com/mongodb/openapi/tools/cli/internal/version.Version={{.Version}} -X github.com/mongodb/openapi/tools/cli/internal/version.GitCommit={{.FullCommit}}
16
16
id : linux
@@ -34,13 +34,13 @@ gomod: # https://goreleaser.com/customization/verifiable_builds/
34
34
35
35
archives :
36
36
- id : linux_archives
37
- name_template : mongodb-openapi -cli_{{ .Version }}_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
37
+ name_template : mongodb-foas -cli_{{ .Version }}_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
38
38
builds : [linux]
39
39
wrap_in_directory : true
40
40
format : tar.gz
41
41
rlcp : false
42
42
- id : macos
43
- name_template : mongodb-openapi -cli_{{ .Version }}_{{- if eq .Os "darwin" }}macos{{- else }}{{ .Os }}{{ end }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
43
+ name_template : mongodb-foas -cli_{{ .Version }}_{{- if eq .Os "darwin" }}macos{{- else }}{{ .Os }}{{ end }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
44
44
builds : [macos]
45
45
format : zip
46
46
wrap_in_directory : false
@@ -59,6 +59,6 @@ changelog:
59
59
60
60
release :
61
61
prerelease : auto
62
- name_template : " OpenAPI CLI {{.Version}}"
62
+ name_template : " FOAS CLI {{.Version}}"
63
63
64
64
Original file line number Diff line number Diff line change 2
2
3
3
GOLANGCI_VERSION =v1.56.2
4
4
SOURCE_FILES? =./cmd
5
- BINARY_NAME =openapicli
5
+ BINARY_NAME =foascli
6
6
VERSION =v0.0.1
7
7
GIT_SHA? =$(shell git rev-parse HEAD)
8
8
DESTINATION =./bin/$(BINARY_NAME )
@@ -39,13 +39,13 @@ fmt: ### Format all go files with goimports and gofmt
39
39
40
40
.PHONY : build
41
41
build :
42
- @echo " ==> Building openapicli binary"
42
+ @echo " ==> Building foascli binary"
43
43
go build -ldflags " $( LINKER_FLAGS) " -o $(DESTINATION ) $(SOURCE_FILES )
44
44
45
45
46
46
.PHONY : build-debug
47
47
build-debug :
48
- @echo " ==> Building openapicli binary for debugging"
48
+ @echo " ==> Building foascli binary for debugging"
49
49
go build -gcflags=" $( DEBUG_FLAGS) " -ldflags " $( LINKER_FLAGS) " -o $(DESTINATION ) $(SOURCE_FILES )
50
50
51
51
.PHONY : lint
File renamed without changes.
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ import (
24
24
)
25
25
26
26
const (
27
- ToolName = "openapicli "
28
- verTemplate = `openapicli version: %s
27
+ ToolName = "foascli "
28
+ verTemplate = `foascli version: %s
29
29
git version: %s
30
30
Go version: %s
31
31
os: %s
@@ -43,7 +43,7 @@ func Builder() *cobra.Command {
43
43
Use : ToolName ,
44
44
Short : "CLI tool to validate and merge your Open API Specifications" ,
45
45
Example : ` # Display the help menu for the merge command:
46
- openapicli merge --help
46
+ foascli merge --help
47
47
` ,
48
48
SilenceUsage : true ,
49
49
}
You can’t perform that action at this time.
0 commit comments