forked from x/icebergs
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) {
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user