fix lint error

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-08-13 07:40:32 +08:00
parent 18942e2a2c
commit 8690d63401
72 changed files with 170 additions and 111 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewApplyCmd returns apply subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewBuildCmd returns build subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
func NewCacheInfoSubcommand(cacheImpl *config.CacheImpl) *cobra.Command {
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewChartsCmd returns charts subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewDeleteCmd returns delete subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewDepsCmd returns deps subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewDestroyCmd returns destroy subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewDiffCmd returns diff subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewFetchCmd returns diff subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewLintCmd returns lint subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewListCmd returns list subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewReposCmd returns repos subcmd
+5 -4
View File
@@ -4,14 +4,15 @@ import (
"fmt"
"os"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/app/version"
"github.com/helmfile/helmfile/pkg/config"
"github.com/helmfile/helmfile/pkg/helmexec"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/urfave/cli"
"go.uber.org/zap"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/app/version"
"github.com/helmfile/helmfile/pkg/config"
"github.com/helmfile/helmfile/pkg/helmexec"
)
var logger *zap.SugaredLogger
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewStatusCmd returns status subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewSyncCmd returns sync subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewTemplateCmd returm template subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewTestCmd returns test subcmd
+2 -1
View File
@@ -3,8 +3,9 @@ package cmd
import (
"fmt"
"github.com/helmfile/helmfile/pkg/app/version"
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app/version"
)
// NewVersionCmd returns version subcmd
+2 -1
View File
@@ -1,9 +1,10 @@
package cmd
import (
"github.com/spf13/cobra"
"github.com/helmfile/helmfile/pkg/app"
"github.com/helmfile/helmfile/pkg/config"
"github.com/spf13/cobra"
)
// NewWriteValuesCmd returns write subcmd