From 7a511f9a13f3d1064fd11c9146e6b21cb961a8b2 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 17 Oct 2018 20:38:10 +0200 Subject: commands: don't load the repo for commands that don't need it fix #67 --- commands/status_open.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'commands/status_open.go') diff --git a/commands/status_open.go b/commands/status_open.go index 9c6363a0..c8717cd2 100644 --- a/commands/status_open.go +++ b/commands/status_open.go @@ -27,9 +27,10 @@ func runStatusOpen(cmd *cobra.Command, args []string) error { } var openCmd = &cobra.Command{ - Use: "open []", - Short: "Mark a bug as open", - RunE: runStatusOpen, + Use: "open []", + Short: "Mark a bug as open", + PreRunE: loadRepo, + RunE: runStatusOpen, } func init() { -- cgit