Skip to content

Commit

Permalink
optimize: Adding prompt messages under existing go.mod conditions (#74)
Browse files Browse the repository at this point in the history
* Add prompt messages after existing go.mod

* Update server.go
  • Loading branch information
Nihilism0 authored Nov 12, 2023
1 parent 462b628 commit 44092d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ func Server(c *config.ServerArgument) error {
if err != nil {
err = cli.Exit(fmt.Errorf("persist manifest failed: %v", err), meta.PersistError)
}
if !args.NeedGoMod && args.IsNew() {
log.Warn(meta.AddThriftReplace)
}
}()
} else {
args.CmdType = meta.CmdUpdate
Expand Down

0 comments on commit 44092d3

Please sign in to comment.