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
Short: "Dump data from IP database file to plain file.",
45
-
Long: `Dump data from IP database file to plain file.
44
+
Short: "Export IP database contents to a text file",
45
+
Long: `Use the 'ips dump' command to extract and export data from IP databases into a plain text format, which can be tailored by specifying fields, formats, and languages.
46
46
47
-
Example:
48
-
ips dump -i geoip.mmdb -o geoip.txt
47
+
For more detailed information and advanced configuration options, please refer to https://github.com/sjzar/ips/blob/main/docs/dump.md
49
48
`,
49
+
Example: ` # Export all fields from an IP database file to a text file
50
+
ips dump -i geoip.mmdb -o geoip.txt
51
+
52
+
# Export specific fields (country and city) from an IP database file
myipCmd.Flags().StringVarP(&rootTextFormat, "text-format", "", "", "Specify the desired format for text output. It supports %origin and %values parameters.")
50
-
myipCmd.Flags().StringVarP(&rootTextValuesSep, "text-values-sep", "", "", "Specify the separator for values in text output. (default is space)")
51
-
myipCmd.Flags().BoolVarP(&rootJson, "json", "j", false, "Output the results in JSON format.")
52
-
myipCmd.Flags().BoolVarP(&rootJsonIndent, "json-indent", "", false, "Output the results in indent JSON format.")
53
-
myipCmd.Flags().BoolVarP(&rootAlfred, "alfred", "", false, "Output the results in Alfred format.")
Short: "Pack data from IP database file to another IP database file.",
45
-
Long: `Pack data from IP database file to another IP database file.
44
+
Short: "Repackage IP database file",
45
+
Long: `The 'ips pack' command enables users to create a new IP database file from an existing one while allowing for customization of the data fields included.
46
46
47
-
Example:
48
-
ips pack -i geoip.mmdb -o geoip.ipdb
47
+
For more detailed information and advanced configuration options, please refer to https://github.com/sjzar/ips/blob/main/docs/pack.md
49
48
`,
49
+
Example: ` # Package IP Database and Specify Fields
0 commit comments