Chore: Fix goimports grouping in other backend platform packages (#62422)

* fix goimports

* fix goimports order

* fix goimports order

* fix goimports order

* fix goimports order

* fix goimports order
This commit is contained in:
Serge Zaitsev
2023-01-30 08:26:42 +00:00
committed by GitHub
parent da7065d3dc
commit aebcecf538
38 changed files with 72 additions and 52 deletions
+2 -1
View File
@@ -4,10 +4,11 @@ import (
"os"
"runtime"
"github.com/urfave/cli/v2"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
"github.com/urfave/cli/v2"
)
// RunCLI is the entrypoint for the grafana-cli command. It returns the exit code for the grafana-cli program.
@@ -3,8 +3,9 @@ package commandstest
import (
"flag"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
"github.com/urfave/cli/v2"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
)
// NewCliContext creates a new CLI context with a certain set of flags.
@@ -4,6 +4,7 @@ import (
"errors"
"github.com/fatih/color"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
@@ -3,11 +3,12 @@ package commands
import (
"context"
"github.com/hashicorp/go-version"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
"github.com/hashicorp/go-version"
)
func shouldUpgrade(installed string, remote *models.Plugin) bool {
@@ -4,8 +4,9 @@ import (
"fmt"
"testing"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
"github.com/stretchr/testify/assert"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
)
func TestVersionComparison(t *testing.T) {
@@ -5,6 +5,7 @@ import (
"fmt"
"github.com/fatih/color"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
+2 -1
View File
@@ -3,8 +3,9 @@ package utils
import (
"os"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
"github.com/urfave/cli/v2"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
)
type CommandLine interface {