Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit 9cf950b

Browse files
saiyam1814Saiyam Pathakalfsuse
authored
cli name change (#72)
* cli name change * Update initlocal.go Co-authored-by: Saiyam Pathak <saiyampathak@Saiyams-MacBook-Pro.local> Co-authored-by: Alessandro Festa <47183399+alfsuse@users.noreply.github.com>
1 parent d5f8481 commit 9cf950b

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
builds:
2-
- id: k3ai-cli
3-
binary: k3ai-cli
2+
- id: k3ai
3+
binary: k3ai
44
main: ./
55
ldflags:
66
- -X github.com/kf5i/k3ai-core/cmd/tools/cli.version={{.Version}} -X github.com/kf5i/k3ai-core/cmd/tools/cli.commit={{.Commit}} -X github.com/kf5i/k3ai-core/cmd/tools/cli.goVersion={{.Env.GO_VERSION}}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ endif
88
TEST_FLAGS ?=
99

1010
build-cli:
11-
go build -o bin/k3ai-cli
11+
go build -o bin/k3ai
1212

1313
.PHONY: lint
1414
lint: check-format

cmd/tools/cli/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"os"
1212
)
1313

14-
const k3aiBinaryName = "k3ai-cli"
14+
const k3aiBinaryName = "k3ai"
1515

1616
var rootCmd = &cobra.Command{
1717
Use: k3aiBinaryName,

cmd/tools/cli/init.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ func newInitCommand() *cobra.Command {
3535
Use: "init",
3636
Short: "Initialize K3ai Client",
3737
Long: `Initialize K3ai Client, allowing user to deploy a new K8's cluster, list plugins and groups`,
38-
Example: `k3ai-cli init #Will use config from $HOME/.k3ai/config.yaml and use interactive menus
39-
k3ai-cli init --config /myfolder/myconfig.yaml #Use a custom config.yaml in another location(local or remote)
40-
k3ai-cli init --local k3s #Use config target marked local and of type k3s
41-
k3ai-cli init --cloud civo #Use config target marked as cloud and of type civo`,
38+
Example: `k3ai init #Will use config from $HOME/.k3ai/config.yaml and use interactive menus
39+
k3ai init --config /myfolder/myconfig.yaml #Use a custom config.yaml in another location(local or remote)
40+
k3ai init --local k3s #Use config target marked local and of type k3s
41+
k3ai init --cloud civo #Use config target marked as cloud and of type civo`,
4242
SilenceUsage: true,
4343
}
4444

cmd/tools/cli/version_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package cli
22

33
func ExampleprintVersion() {
44
printVersion()
5-
// Output: k3ai-cli version: dev
5+
// Output: k3ai version: dev
66
// go version: unknown
77
// commit: dev
88
}

internal/infra/local/initlocal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func localAppDeployment(data shared.TargetCustoms, osFlavor string) {
128128
var cmd *exec.Cmd
129129
if osFlavor == "windows" {
130130
for item := range data.Plugins {
131-
cmd = exec.Command("powershell", "k3ai-cli.exe apply ", data.Plugins[item].Name, " --kubectl")
131+
cmd = exec.Command("powershell", "k3ai.exe apply ", data.Plugins[item].Name, " --kubectl")
132132
cmd.Stderr = nil
133133
cmd.Stdin = os.Stdin
134134
cmd.Stdout = nil
@@ -140,7 +140,7 @@ func localAppDeployment(data shared.TargetCustoms, osFlavor string) {
140140
}
141141
} else {
142142
for item := range data.Plugins {
143-
cmd = exec.Command("bin/sh", "-c", "k3ai-cli.exe apply ", data.Plugins[item].Name, " --kubectl")
143+
cmd = exec.Command("bin/sh", "-c", "k3ai apply ", data.Plugins[item].Name, " --kubectl")
144144
cmd.Stderr = nil
145145
cmd.Stdin = os.Stdin
146146
cmd.Stdout = nil

0 commit comments

Comments
 (0)