1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-25 17:18:05 +08:00
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) {
if file == "" {
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) {
file = "/require/" + file