commit 9da402d

chld  ·  2026-02-07 02:46:37 +0000 UTC
parent b516817
ok but no autocompletion
2 files changed,  +2, -2
+1, -1
1@@ -27,5 +27,5 @@ func Die(a string, b string, exit int) {
2 
3 func Warn(a string, b string) {
4 	fmt.Printf("\033[m\033[33;1mwarning:\033[m ")
5-	fmt.Printf("%s: %s\n", a, b)
6+	fmt.Printf("%s: \033[1m%s\033[m\n", a, b)
7 }
+1, -1
1@@ -101,7 +101,7 @@ func main() {
2 		for i := range len(pkgs) {
3 			pkg, b := dgr.FindPkg(pkgs[i])
4 			if !b {
5-				dgr.Die("could not find package", pkgs[i], 0)
6+				dgr.Warn("could not find package", pkgs[i])
7 			} else {
8 				fmt.Println(pkg)
9 			}