You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lookup.go
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ import (
21
21
varsupportedInputFormats=map[string]bool{
22
22
strings.ToLower("clashRuleSet"): true,
23
23
strings.ToLower("clashRuleSetClassical"): true,
24
+
strings.ToLower("dbipCountryMMDB"): true,
25
+
strings.ToLower("ipinfoCountryMMDB"): true,
24
26
strings.ToLower("maxmindMMDB"): true,
25
27
strings.ToLower("mihomoMRS"): true,
26
28
strings.ToLower("singboxSRS"): true,
@@ -32,7 +34,7 @@ var supportedInputFormats = map[string]bool{
32
34
funcinit() {
33
35
rootCmd.AddCommand(lookupCmd)
34
36
35
-
lookupCmd.Flags().StringP("format", "f", "", "(Required) The input format. Available formats: text, v2rayGeoIPDat, maxmindMMDB, mihomoMRS, singboxSRS, clashRuleSet, clashRuleSetClassical, surgeRuleSet")
37
+
lookupCmd.Flags().StringP("format", "f", "", "(Required) The input format. Available formats: text, v2rayGeoIPDat, maxmindMMDB, dbipCountryMMDB, ipinfoCountryMMDB, mihomoMRS, singboxSRS, clashRuleSet, clashRuleSetClassical, surgeRuleSet")
36
38
lookupCmd.Flags().StringP("uri", "u", "", "URI of the input file, support both local file path and remote HTTP(S) URL. (Cannot be used with \"dir\" flag)")
37
39
lookupCmd.Flags().StringP("dir", "d", "", "Path to the input directory. The filename without extension will be as the name of the list. (Cannot be used with \"uri\" flag)")
38
40
lookupCmd.Flags().StringSliceP("searchlist", "l", []string{}, "The lists to search from, separated by comma")
0 commit comments