Skip to content

Commit f35f723

Browse files
style(cmd): apply gofmt-style cleanup in deploy/docker/env/k8s commands
1 parent 4aa4c65 commit f35f723

6 files changed

Lines changed: 21 additions & 26 deletions

File tree

cmd/deploy.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cmd
22

33
import (
4-
54
"github.com/aryansharma9917/codewise-cli/pkg/deploy"
65
"github.com/spf13/cobra"
76
)

cmd/docker.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cmd
22

33
import (
4-
54
"github.com/aryansharma9917/codewise-cli/pkg/docker"
65
"github.com/spf13/cobra"
76
)

cmd/env_list.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
package cmd
22

33
import (
4-
"fmt"
4+
"fmt"
55

6-
"github.com/aryansharma9917/codewise-cli/pkg/env"
7-
"github.com/spf13/cobra"
6+
"github.com/aryansharma9917/codewise-cli/pkg/env"
7+
"github.com/spf13/cobra"
88
)
99

1010
var envListCmd = &cobra.Command{
11-
Use: "list",
12-
Short: "List environments",
13-
RunE: func(cmd *cobra.Command, args []string) error {
14-
envs, err := env.ListEnvs()
15-
if err != nil {
16-
return LogError(err.Error())
17-
}
11+
Use: "list",
12+
Short: "List environments",
13+
RunE: func(cmd *cobra.Command, args []string) error {
14+
envs, err := env.ListEnvs()
15+
if err != nil {
16+
return LogError(err.Error())
17+
}
1818

19-
if len(envs) == 0 {
20-
fmt.Println("no environments found")
21-
return nil
22-
}
19+
if len(envs) == 0 {
20+
fmt.Println("no environments found")
21+
return nil
22+
}
2323

24-
for _, e := range envs {
25-
fmt.Printf("%-10s namespace=%s context=%s\n",
26-
e.Name, e.K8s.Namespace, e.K8s.Context)
27-
}
28-
return nil
29-
},
24+
for _, e := range envs {
25+
fmt.Printf("%-10s namespace=%s context=%s\n",
26+
e.Name, e.K8s.Namespace, e.K8s.Context)
27+
}
28+
return nil
29+
},
3030
}
3131

3232
func init() {
33-
envCmd.AddCommand(envListCmd)
33+
envCmd.AddCommand(envListCmd)
3434
}

cmd/k8s_apply.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cmd
22

33
import (
4-
54
"github.com/aryansharma9917/codewise-cli/pkg/k8s"
65
"github.com/spf13/cobra"
76
)

cmd/k8s_delete.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cmd
22

33
import (
4-
54
"github.com/aryansharma9917/codewise-cli/pkg/k8s"
65
"github.com/spf13/cobra"
76
)

cmd/k8s_init.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cmd
22

33
import (
4-
54
"github.com/aryansharma9917/codewise-cli/pkg/k8s"
65
"github.com/spf13/cobra"
76
)

0 commit comments

Comments
 (0)