initial commit
This commit is contained in:
18
cmd/json.go
Normal file
18
cmd/json.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var jsonCmd = &cobra.Command{
|
||||
Use: "json [filters...]",
|
||||
Short: "One-shot json output of connections",
|
||||
Long: `One-shot json output of connections. This is an alias for "ls -o json".`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
runListCommand("json", args)
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(jsonCmd)
|
||||
}
|
||||
Reference in New Issue
Block a user