Skip to content

Commit

Permalink
refactor: rename kusionctl to kusion (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
howieyuen committed Dec 15, 2022
1 parent 6ae06f1 commit a001935
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
15 changes: 5 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ build-local-kusion-darwin: ## Build kusionctl only for macOS
# Build kusion
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ./_build/bundles/kusion-darwin/bin/kusion \
-ldflags="-s -w" \
./cmd/kusionctl
-ldflags="-s -w" .

build-local-darwin: ## Build kusion tool chain for macOS
# Delete old artifacts
Expand All @@ -92,8 +91,7 @@ build-local-darwin: ## Build kusion tool chain for macOS
# Build kusion
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ./_build/bundles/kusion-darwin/bin/kusion \
-ldflags="-s -w" \
./cmd/kusionctl
-ldflags="-s -w" .

build-local-darwin-all: build-local-darwin ## Build kusion & kcl tool chain for macOS
# Install kclvm darwin
Expand Down Expand Up @@ -148,8 +146,7 @@ build-local-darwin-arm64: ## Build kusion tool chain for macOS arm64
# Build kusion
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 \
go build -o ./_build/bundles/kusion-darwin-arm64/bin/kusion \
-ldflags="-s -w" \
./cmd/kusionctl
-ldflags="-s -w" .

build-local-darwin-arm64-all: build-local-darwin-arm64 ## Build kusion & kcl tool chain for macOS arm64
# Install kclvm darwin
Expand Down Expand Up @@ -209,8 +206,7 @@ build-local-linux: ## Build kusion tool chain for linux
# Build kusion
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
go build -o ./_build/bundles/kusion-linux/bin/kusion \
-ldflags="-s -w" \
./cmd/kusionctl
-ldflags="-s -w" .

build-local-linux-all:
@echo -e "$(CCRED)**** The use of build-local-linux-alle is deprecated. Use build-local-ubuntu-all or build-local-centos-all instead. ****$(CCEND)"
Expand Down Expand Up @@ -317,8 +313,7 @@ build-local-windows: ## Build kusion tool chain for windows
# Build kusion
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 \
go build -o ./_build/bundles/kusion-windows/bin/kusion.exe \
-ldflags="-s -w" \
./cmd/kusionctl
-ldflags="-s -w" .

build-local-windows-all: build-local-windows ## Build kusion & kcl tool chain for windows
# Install kclvm windows
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// kusion is a cloud-native engineering system,
// which manages the infrastructure by code.
package kusion
package main
2 changes: 1 addition & 1 deletion hack/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -o pipefail
GO111MODULE=on go install github.com/onsi/ginkgo/v2/ginkgo@v2.0.0

# Build kusion binary
go build -o bin/kusion ./cmd/kusionctl/kusionctl.go
go build -o bin/kusion .


# Run e2e
Expand Down
1 change: 1 addition & 0 deletions cmd/kusionctl/kusionctl.go → kusion.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"time"

_ "kusionstack.io/kcl-plugin"

"kusionstack.io/kusion/pkg/kusionctl/cmd"
"kusionstack.io/kusion/pkg/util/pretty"
)
Expand Down

0 comments on commit a001935

Please sign in to comment.