Skip to content

Commit 5bc4706

Browse files
author
vietanhduong
committed
remove require gcloud cli
Signed-off-by: vietanhduong <anh.duong@kyber.network>
1 parent c8c2e8b commit 5bc4706

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

cmd/main.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
package main
22

33
import (
4-
"log"
54
"os"
65

76
"github.com/spf13/cobra"
87
"github.com/vietanhduong/pause-gcp/cmd/gke"
98
"github.com/vietanhduong/pause-gcp/cmd/sql"
109
"github.com/vietanhduong/pause-gcp/cmd/version"
1110
"github.com/vietanhduong/pause-gcp/cmd/vm"
12-
"github.com/vietanhduong/pause-gcp/pkg/utils/exec"
1311
)
1412

1513
func newRootCmd() *cobra.Command {
@@ -24,15 +22,7 @@ func newRootCmd() *cobra.Command {
2422
}
2523

2624
func main() {
27-
if err := testGcloud(); err != nil {
28-
log.Fatalln(err)
29-
}
3025
if err := newRootCmd().Execute(); err != nil {
3126
os.Exit(1)
3227
}
3328
}
34-
35-
func testGcloud() error {
36-
_, err := exec.Run(exec.Command("which", "gcloud"))
37-
return err
38-
}

0 commit comments

Comments
 (0)