From 796752b15d41437dcacd44fe584bf38ac7cad863 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 11 Jul 2018 17:41:05 +0100 Subject: [PATCH] Move opts closer to where they're used --- cmd/leak.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/leak.go b/cmd/leak.go index 1ee5811..bba0785 100644 --- a/cmd/leak.go +++ b/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] ", @@ -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)