chore: format import sort (#973)

Co-authored-by: quanlong <wangquanlong@joyme.sg>
pull/975/head
Richard 4 years ago committed by GitHub
parent 156146036b
commit f51bd97324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmd/kratos/internal/base/path.go
  2. 7
      cmd/kratos/internal/project/new.go
  3. 2
      cmd/kratos/internal/project/project.go
  4. 1
      cmd/kratos/internal/proto/client/client.go
  5. 1
      cmd/kratos/internal/upgrade/upgrade.go
  6. 1
      cmd/kratos/main.go

@ -3,13 +3,14 @@ package base
import (
"bytes"
"fmt"
"github.com/fatih/color"
"io/ioutil"
"log"
"os"
"path"
"path/filepath"
"strings"
"github.com/fatih/color"
)
func kratosHome() string {

@ -3,12 +3,13 @@ package project
import (
"context"
"fmt"
"github.com/fatih/color"
"os"
"path"
"github.com/AlecAivazis/survey/v2"
"github.com/go-kratos/kratos/cmd/kratos/v2/internal/base"
"github.com/AlecAivazis/survey/v2"
"github.com/fatih/color"
)
// Project is a project template.
@ -24,7 +25,7 @@ func (p *Project) New(ctx context.Context, dir string, layout string) error {
override := false
prompt := &survey.Confirm{
Message: "📂 Do you want to override the folder ?",
Help: "Delete the existing folder and create the project.",
Help: "Delete the existing folder and create the project.",
}
survey.AskOne(prompt, &override)
if !override {

@ -3,10 +3,10 @@ package project
import (
"context"
"fmt"
"github.com/AlecAivazis/survey/v2"
"os"
"time"
"github.com/AlecAivazis/survey/v2"
"github.com/spf13/cobra"
)

@ -8,6 +8,7 @@ import (
"strings"
"github.com/go-kratos/kratos/cmd/kratos/v2/internal/base"
"github.com/spf13/cobra"
)

@ -4,6 +4,7 @@ import (
"fmt"
"github.com/go-kratos/kratos/cmd/kratos/v2/internal/base"
"github.com/spf13/cobra"
)

@ -6,6 +6,7 @@ import (
"github.com/go-kratos/kratos/cmd/kratos/v2/internal/project"
"github.com/go-kratos/kratos/cmd/kratos/v2/internal/proto"
"github.com/go-kratos/kratos/cmd/kratos/v2/internal/upgrade"
"github.com/spf13/cobra"
)

Loading…
Cancel
Save