Skip to content

Commit de79fb8

Browse files
committed
initial command
1 parent e0e3eba commit de79fb8

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

cmd/plugin/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/mongodb-labs/atlas-cli-plugin-terraform/internal/cli/hello"
7+
"github.com/mongodb-labs/atlas-cli-plugin-terraform/internal/cli/cluster"
88
"github.com/spf13/cobra"
99
)
1010

@@ -16,7 +16,7 @@ func main() {
1616
}
1717

1818
terraformCmd.AddCommand(
19-
hello.Builder(),
19+
cluster.Builder(),
2020
)
2121

2222
completionOption := &cobra.CompletionOptions{

internal/cli/cluster/cluster.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package cluster
2+
3+
import (
4+
"fmt"
5+
6+
"github.com/spf13/cobra"
7+
)
8+
9+
func Builder() *cobra.Command {
10+
cmd := &cobra.Command{
11+
Use: "cluster_to_advanced",
12+
Short: "Upgrade cluster to advanced_cluster",
13+
Long: "WIP - Long description for upgrade cluster to advanced_cluster",
14+
Aliases: []string{"clu2adv"},
15+
Run: func(_ *cobra.Command, _ []string) {
16+
fmt.Println("WIP - Upgrade cluster to advanced_cluster")
17+
},
18+
}
19+
return cmd
20+
}

internal/cli/hello/hello.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)