From d708fb7fd6a77cde1ed7733a90860daee9675ef0 Mon Sep 17 00:00:00 2001 From: snwfdhmp Date: Mon, 9 Oct 2017 10:56:41 +0200 Subject: [PATCH] Added CustomData Added CustomData : interface{} --- command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command.go b/command.go index a23bb6d9..d956a3ac 100644 --- a/command.go +++ b/command.go @@ -175,6 +175,9 @@ type Command struct { // helpCommand is command with usage 'help'. If it's not defined by user, // cobra uses default help command. helpCommand *Command + + // CustomData permits you to store arbitrary data for specific needs + CustomData interface{} } // SetArgs sets arguments for the command. It is set to os.Args[1:] by default, if desired, can be overridden