mirror of
https://github.com/jimeh/rbheap.git
synced 2026-02-19 04:46:40 +00:00
Move opts closer to where they're used
This commit is contained in:
10
cmd/leak.go
10
cmd/leak.go
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user