Move opts closer to where they're used

This commit is contained in:
2018-07-11 17:41:05 +01:00
parent d239c011b0
commit 796752b15d

View File

@@ -7,11 +7,6 @@ import (
"github.com/spf13/cobra"
)
var leakOpts = struct {
Format string
Verbose bool
}{}
// leakCmd represents the leak command
var leakCmd = &cobra.Command{
Use: "leak [flags] <dump-A> <dump-B> <dump-C>",
@@ -51,6 +46,11 @@ objects are present in both B and C, and not present in A.`,
},
}
var leakOpts = struct {
Format string
Verbose bool
}{}
func init() {
rootCmd.AddCommand(leakCmd)