-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathbeta.go
More file actions
50 lines (42 loc) · 1.14 KB
/
beta.go
File metadata and controls
50 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT.
See the LICENSE file for more details.
*/
package cmd
import (
"fmt"
"github.com/konstructio/kubefirst/cmd/akamai"
"github.com/konstructio/kubefirst/cmd/azure"
"github.com/konstructio/kubefirst/cmd/google"
"github.com/konstructio/kubefirst/cmd/k3s"
"github.com/konstructio/kubefirst/cmd/vultr"
"github.com/konstructio/kubefirst/internal/progress"
"github.com/konstructio/kubefirst/internal/teawrapper"
"github.com/spf13/cobra"
)
func getBetaCommand() *cobra.Command {
// betaCmd represents the beta command tree
betaCmd := &cobra.Command{
Use: "beta",
Short: "access Kubefirst beta features",
Long: `access Kubefirst beta features`,
RunE: teawrapper.WrapBubbleTea(func(_ *cobra.Command, _ []string) error {
fmt.Println("To learn more about Kubefirst, run:")
fmt.Println(" kubefirst help")
if progress.Progress != nil {
progress.Progress.Quit()
}
return nil
}),
}
cobra.OnInitialize()
betaCmd.AddCommand(
akamai.NewCommand(),
azure.NewCommand(),
k3s.NewCommand(),
google.NewCommand(),
vultr.NewCommand(),
)
return betaCmd
}