Skip to content

Commit 43a7514

Browse files
CLOUDP-245948: Rename openapicli to foascli (#22)
1 parent cb89953 commit 43a7514

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/release-cli.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
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:
@@ -87,5 +87,5 @@ jobs:
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 }}

tools/cli/.goreleaser.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
3-
project_name: openapicli
3+
project_name: foascli
44
before:
55
hooks:
66
# this is just an example and not a requirement for provider building/publishing
@@ -9,8 +9,8 @@ builds:
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

3535
archives:
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

6060
release:
6161
prerelease: auto
62-
name_template: "OpenAPI CLI {{.Version}}"
62+
name_template: "FOAS CLI {{.Version}}"
6363

6464

tools/cli/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
GOLANGCI_VERSION=v1.56.2
44
SOURCE_FILES?=./cmd
5-
BINARY_NAME=openapicli
5+
BINARY_NAME=foascli
66
VERSION=v0.0.1
77
GIT_SHA?=$(shell git rev-parse HEAD)
88
DESTINATION=./bin/$(BINARY_NAME)
@@ -39,13 +39,13 @@ fmt: ### Format all go files with goimports and gofmt
3939

4040
.PHONY: build
4141
build:
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
4747
build-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.

tools/cli/internal/cli/root/openapi/builder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
)
2525

2626
const (
27-
ToolName = "openapicli"
28-
verTemplate = `openapicli version: %s
27+
ToolName = "foascli"
28+
verTemplate = `foascli version: %s
2929
git version: %s
3030
Go 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
}

0 commit comments

Comments
 (0)