Skip to content

Commit

Permalink
add install and build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Lior Nabat committed Dec 16, 2022
1 parent 053c5fb commit fc58676
Show file tree
Hide file tree
Showing 60 changed files with 1,187 additions and 2,409 deletions.
26 changes: 1 addition & 25 deletions .idea/watcherTasks.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

87 changes: 72 additions & 15 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# github.com/go-task/task

version: '2'
version: '3'

vars:
BINARY_NAME: kubemqctl
VERSION: v3.6.1
VERSION: v3.7.0

tasks:
check_update:
Expand Down
28 changes: 28 additions & 0 deletions cmd/build/build.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package build

import (
"context"

"github.com/kubemq-io/kubemqctl/pkg/utils"

"github.com/pkg/browser"

"github.com/kubemq-io/kubemqctl/pkg/config"
"github.com/spf13/cobra"
)

func NewCmdBuild(ctx context.Context, cfg *config.Config) *cobra.Command {
cmd := &cobra.Command{
Use: "build",
Aliases: []string{"b"},
Short: "Load KubeMQ builder in browser",
Long: "Load KubeMQ builder in browser",
Example: "kubemqctl build",
Run: func(cmd *cobra.Command, args []string) {
utils.Println("Loading KubeMQ build in browser")
utils.CheckErr(browser.OpenURL("https://build.kubemq.io"))
},
}

return cmd
}
64 changes: 0 additions & 64 deletions cmd/create/cluster/api.go

This file was deleted.

68 changes: 0 additions & 68 deletions cmd/create/cluster/authentication.go

This file was deleted.

Loading

0 comments on commit fc58676

Please sign in to comment.