blob: 1a05bea52167bfe1283987be87743fe8b5e2641e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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()
},
}
|