From 9ecbf0d71b7ea52fabf923d8c8c75d4303da281a Mon Sep 17 00:00:00 2001 From: Asim Date: Mon, 4 Jan 2016 11:25:58 +0000 Subject: [PATCH] Let me do some stuff with the global command --- cmd/cmd.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/cmd.go b/cmd/cmd.go index 824f13fb..e99657e7 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -340,6 +340,14 @@ func (c *cmd) Init(opts ...Option) error { return nil } +func DefaultOptions() Options { + return DefaultCmd.Options() +} + +func App() *cli.App { + return DefaultCmd.App() +} + func Init(opts ...Option) error { return DefaultCmd.Init(opts...) }