Skip to content

Commit

Permalink
Refine build messages for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
powerkimhub committed Sep 20, 2024
1 parent 0f18ddd commit 319925d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default: swag
@echo -e '\t[CB-Spider] build ./bin/cb-spider....'
@echo -e '\t[CB-Spider] building ./bin/cb-spider....'
@go mod download
@go mod tidy
@go build -o bin/cb-spider ./api-runtime
Expand All @@ -16,7 +16,7 @@ clean clear:
@rm -rf bin/cb-spider bin/cb-spider-dyna bin/cb-spider-arm

swag swagger:
@echo -e '\t[CB-Spider] generating Swagger documentation'
@echo -e '\t[CB-Spider] generating Swagger documentations...'
@~/go/bin/swag i -g api-runtime/rest-runtime/CBSpiderRuntime.go -d ./,./api-runtime/common-runtime,./cloud-control-manager,./cloud-info-manager,./info-store -o api > /dev/null
@sed -i -e 's/github_com_cloud-barista_cb-spider_cloud-control-manager_cloud-driver_interfaces_resources/spider/g' \
-e 's/restruntime/spider/g' \
Expand Down
2 changes: 1 addition & 1 deletion cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ default:
@echo "VERSION: $(VERSION)"
@echo "COMMIT_SHA: $(COMMIT_SHA)"
@echo "BUILD_TIME: $(BUILD_TIME)"
@echo -e '\t[CB-Spider] build spctl...'
@echo -e '\t[CB-Spider] building spctl...'
@go mod download
@go mod tidy
@cp ../api/swagger.json ./cmd
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var serverURL string

func Execute() {
rootCmd.PersistentFlags().StringVarP(&serverURL, "server", "s", "localhost:1024", "Spider server URL")
rootCmd.Flags().BoolP("version", "v", false, "Print the version information and exit")
rootCmd.Flags().BoolP("version", "v", false, "Print the version information")

loadSwagger()
cobra.CheckErr(rootCmd.Execute())
Expand Down

0 comments on commit 319925d

Please sign in to comment.