1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-05-23 01:27:09 +08:00
parent b4ed74a874
commit 91b13b4bfd

View File

@ -204,6 +204,10 @@ func (m *Message) EchoDownload(arg ...string) *Message {
func (m *Message) Display(file string, arg ...Any) { func (m *Message) Display(file string, arg ...Any) {
if file == "" { if file == "" {
file = strings.TrimPrefix(kit.FileLine(2, 100), Info.Make.Path) file = strings.TrimPrefix(kit.FileLine(2, 100), Info.Make.Path)
file = strings.TrimPrefix(file, kit.Path("")+PS)
if strings.Contains(file, "/pkg/mod/") {
file = strings.Split(file, "/pkg/mod/")[1]
}
} }
if !strings.HasPrefix(file, PS) && !strings.HasPrefix(file, HTTP) { if !strings.HasPrefix(file, PS) && !strings.HasPrefix(file, HTTP) {
file = "/require/" + file file = "/require/" + file