aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-13 18:32:11 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-13 18:39:19 +0200
commit4c850b598939536b2e09ed520e427e94d0026211 (patch)
tree99c08f0e853cca023bcf5e6044964c630ae52299 /commands
parentdf144e727a858ed07e3c9328d91efe052c4781e1 (diff)
downloadgit-bug-4c850b598939536b2e09ed520e427e94d0026211.tar.gz
cleanup go imports
Diffstat (limited to 'commands')
-rw-r--r--commands/close.go1
-rw-r--r--commands/commands.go1
-rw-r--r--commands/comment.go1
-rw-r--r--commands/label.go3
-rw-r--r--commands/ls.go1
-rw-r--r--commands/new.go1
-rw-r--r--commands/open.go1
-rw-r--r--commands/pull.go3
-rw-r--r--commands/root.go3
-rw-r--r--commands/show.go3
-rw-r--r--commands/webui.go9
11 files changed, 19 insertions, 8 deletions
diff --git a/commands/close.go b/commands/close.go
index f57519ea..10420a4e 100644
--- a/commands/close.go
+++ b/commands/close.go
@@ -2,6 +2,7 @@ package commands
import (
"errors"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/spf13/cobra"
diff --git a/commands/commands.go b/commands/commands.go
index 0ab84717..51aa4e9a 100644
--- a/commands/commands.go
+++ b/commands/commands.go
@@ -2,6 +2,7 @@ package commands
import (
"fmt"
+
"github.com/spf13/cobra"
)
diff --git a/commands/comment.go b/commands/comment.go
index 0a76e4ce..97aa18aa 100644
--- a/commands/comment.go
+++ b/commands/comment.go
@@ -3,6 +3,7 @@ package commands
import (
"errors"
"fmt"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/MichaelMure/git-bug/input"
diff --git a/commands/label.go b/commands/label.go
index ee6ed25f..6c729ff5 100644
--- a/commands/label.go
+++ b/commands/label.go
@@ -2,10 +2,11 @@ package commands
import (
"errors"
+ "os"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/spf13/cobra"
- "os"
)
var labelRemove bool
diff --git a/commands/ls.go b/commands/ls.go
index 5a5d96c6..30aa7bdc 100644
--- a/commands/ls.go
+++ b/commands/ls.go
@@ -2,6 +2,7 @@ package commands
import (
"fmt"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/util"
"github.com/spf13/cobra"
diff --git a/commands/new.go b/commands/new.go
index a13e36bf..bd0966e5 100644
--- a/commands/new.go
+++ b/commands/new.go
@@ -2,6 +2,7 @@ package commands
import (
"fmt"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/MichaelMure/git-bug/input"
diff --git a/commands/open.go b/commands/open.go
index c99578cf..8a5ede3d 100644
--- a/commands/open.go
+++ b/commands/open.go
@@ -2,6 +2,7 @@ package commands
import (
"errors"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
"github.com/spf13/cobra"
diff --git a/commands/pull.go b/commands/pull.go
index 52b3ecd8..ff07912a 100644
--- a/commands/pull.go
+++ b/commands/pull.go
@@ -2,9 +2,10 @@ package commands
import (
"errors"
+ "os"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/spf13/cobra"
- "os"
)
func runPull(cmd *cobra.Command, args []string) error {
diff --git a/commands/root.go b/commands/root.go
index df8d3d32..ac2a75d8 100644
--- a/commands/root.go
+++ b/commands/root.go
@@ -2,10 +2,11 @@ package commands
import (
"fmt"
+ "os"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/repository"
"github.com/spf13/cobra"
- "os"
)
// Will display "git bug"
diff --git a/commands/show.go b/commands/show.go
index 8cf3e34a..fe7581a7 100644
--- a/commands/show.go
+++ b/commands/show.go
@@ -3,10 +3,11 @@ package commands
import (
"errors"
"fmt"
+ "strings"
+
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/util"
"github.com/spf13/cobra"
- "strings"
)
func runShowBug(cmd *cobra.Command, args []string) error {
diff --git a/commands/webui.go b/commands/webui.go
index 0389d68b..9ebced09 100644
--- a/commands/webui.go
+++ b/commands/webui.go
@@ -4,6 +4,11 @@ import (
"bytes"
"encoding/json"
"fmt"
+ "io/ioutil"
+ "log"
+ "net/http"
+ "time"
+
"github.com/MichaelMure/git-bug/graphql"
"github.com/MichaelMure/git-bug/repository"
"github.com/MichaelMure/git-bug/util"
@@ -13,10 +18,6 @@ import (
"github.com/skratchdot/open-golang/open"
"github.com/spf13/cobra"
"github.com/vektah/gqlgen/handler"
- "io/ioutil"
- "log"
- "net/http"
- "time"
)
var port int