mirror of
https://github.com/bolucat/Archive.git
synced 2025-09-26 20:21:35 +08:00
22 lines
392 B
Go
22 lines
392 B
Go
package main
|
|
|
|
import (
|
|
"github.com/Loyalsoldier/geoip/lib"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(listCmd)
|
|
}
|
|
|
|
var listCmd = &cobra.Command{
|
|
Use: "list",
|
|
Aliases: []string{"l", "ls"},
|
|
Short: "List all available input and output formats",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
lib.ListInputConverter()
|
|
println()
|
|
lib.ListOutputConverter()
|
|
},
|
|
}
|