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/bridge_configure.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'commands/bridge_configure.go') diff --git a/commands/bridge_configure.go b/commands/bridge_configure.go index 4329b54c..ed18cae9 100644 --- a/commands/bridge_configure.go +++ b/commands/bridge_configure.go @@ -88,9 +88,10 @@ func promptName() (string, error) { } var bridgeConfigureCmd = &cobra.Command{ - Use: "configure", - Short: "Configure a new bridge", - RunE: runBridgeConfigure, + Use: "configure", + Short: "Configure a new bridge", + PreRunE: loadRepo, + RunE: runBridgeConfigure, } func init() { -- cgit