mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
b4ed74a874
commit
91b13b4bfd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user