We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c2e8b commit 5bc4706Copy full SHA for 5bc4706
cmd/main.go
@@ -1,15 +1,13 @@
1
package main
2
3
import (
4
- "log"
5
"os"
6
7
"github.com/spf13/cobra"
8
"github.com/vietanhduong/pause-gcp/cmd/gke"
9
"github.com/vietanhduong/pause-gcp/cmd/sql"
10
"github.com/vietanhduong/pause-gcp/cmd/version"
11
"github.com/vietanhduong/pause-gcp/cmd/vm"
12
- "github.com/vietanhduong/pause-gcp/pkg/utils/exec"
13
)
14
15
func newRootCmd() *cobra.Command {
@@ -24,15 +22,7 @@ func newRootCmd() *cobra.Command {
24
22
}
25
23
26
func main() {
27
- if err := testGcloud(); err != nil {
28
- log.Fatalln(err)
29
- }
30
if err := newRootCmd().Execute(); err != nil {
31
os.Exit(1)
32
33
34
-
35
-func testGcloud() error {
36
- _, err := exec.Run(exec.Command("which", "gcloud"))
37
- return err
38
-}
0 commit comments