mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
chore: format import sort (#973)
Co-authored-by: quanlong <wangquanlong@joyme.sg>
This commit is contained in:
parent
156146036b
commit
f51bd97324
@ -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…
x
Reference in New Issue
Block a user