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 4444 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4545 with :
4646 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:"
4848 body : See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
4949
5050 run-tests :
8787 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8888 with :
8989 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:"
9191 body : See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
Original file line number Diff line number Diff line change 11# Visit https://goreleaser.com for documentation on how to customize this
22# behavior.
3- project_name : openapicli
3+ project_name : foascli
44before :
55 hooks :
66 # this is just an example and not a requirement for provider building/publishing
99 - << : &build_defaults
1010 env :
1111 - CGO_ENABLED=0
12- binary : bin/openapicli
13- main : ./cmd/openapicli .go
12+ binary : bin/foascli
13+ main : ./cmd/foascli .go
1414 ldflags :
1515 - -s -w -X github.com/mongodb/openapi/tools/cli/internal/version.Version={{.Version}} -X github.com/mongodb/openapi/tools/cli/internal/version.GitCommit={{.FullCommit}}
1616 id : linux
@@ -34,13 +34,13 @@ gomod: # https://goreleaser.com/customization/verifiable_builds/
3434
3535archives :
3636- 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 }}
3838 builds : [linux]
3939 wrap_in_directory : true
4040 format : tar.gz
4141 rlcp : false
4242- 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 }}
4444 builds : [macos]
4545 format : zip
4646 wrap_in_directory : false
@@ -59,6 +59,6 @@ changelog:
5959
6060release :
6161 prerelease : auto
62- name_template : " OpenAPI CLI {{.Version}}"
62+ name_template : " FOAS CLI {{.Version}}"
6363
6464
Original file line number Diff line number Diff line change 22
33GOLANGCI_VERSION =v1.56.2
44SOURCE_FILES? =./cmd
5- BINARY_NAME =openapicli
5+ BINARY_NAME =foascli
66VERSION =v0.0.1
77GIT_SHA? =$(shell git rev-parse HEAD)
88DESTINATION =./bin/$(BINARY_NAME )
@@ -39,13 +39,13 @@ fmt: ### Format all go files with goimports and gofmt
3939
4040.PHONY : build
4141build :
42- @echo " ==> Building openapicli binary"
42+ @echo " ==> Building foascli binary"
4343 go build -ldflags " $( LINKER_FLAGS) " -o $(DESTINATION ) $(SOURCE_FILES )
4444
4545
4646.PHONY : build-debug
4747build-debug :
48- @echo " ==> Building openapicli binary for debugging"
48+ @echo " ==> Building foascli binary for debugging"
4949 go build -gcflags=" $( DEBUG_FLAGS) " -ldflags " $( LINKER_FLAGS) " -o $(DESTINATION ) $(SOURCE_FILES )
5050
5151.PHONY : lint
File renamed without changes.
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ import (
2424)
2525
2626const (
27- ToolName = "openapicli "
28- verTemplate = `openapicli version: %s
27+ ToolName = "foascli "
28+ verTemplate = `foascli version: %s
2929git version: %s
3030Go version: %s
3131 os: %s
@@ -43,7 +43,7 @@ func Builder() *cobra.Command {
4343 Use : ToolName ,
4444 Short : "CLI tool to validate and merge your Open API Specifications" ,
4545 Example : ` # Display the help menu for the merge command:
46- openapicli merge --help
46+ foascli merge --help
4747` ,
4848 SilenceUsage : true ,
4949 }
You can’t perform that action at this time.
0 commit comments