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.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'commands/status.go') diff --git a/commands/status.go b/commands/status.go index a34b0918..6aed000a 100644 --- a/commands/status.go +++ b/commands/status.go @@ -28,9 +28,10 @@ func runStatus(cmd *cobra.Command, args []string) error { } var statusCmd = &cobra.Command{ - Use: "status []", - Short: "Display or change a bug status", - RunE: runStatus, + Use: "status []", + Short: "Display or change a bug status", + PreRunE: loadRepo, + RunE: runStatus, } func init() { -- cgit