Rework directory structure

Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
This commit is contained in:
pancho horrillo
2019-10-03 12:05:53 +02:00
parent 8b7d1d69e7
commit 23128026c7
12 changed files with 12 additions and 12 deletions
@@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/BBVA/kapow/client" "github.com/BBVA/kapow/internal/client"
gock "gopkg.in/h2non/gock.v1" gock "gopkg.in/h2non/gock.v1"
) )
+2 -2
View File
@@ -1,4 +1,4 @@
package command package cmd
import ( import (
"fmt" "fmt"
@@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/BBVA/kapow/client" "github.com/BBVA/kapow/internal/client"
) )
// GetCmd is the command line interface for get kapow data operation // GetCmd is the command line interface for get kapow data operation
+1 -1
View File
@@ -1,4 +1,4 @@
package command package cmd
import ( import (
"fmt" "fmt"
+1 -1
View File
@@ -1,4 +1,4 @@
package command package cmd
import ( import (
"errors" "errors"
+1 -1
View File
@@ -1,4 +1,4 @@
package command package cmd
import ( import (
"fmt" "fmt"
@@ -1,4 +1,4 @@
package command package cmd
import ( import (
"errors" "errors"
+5 -5
View File
@@ -6,16 +6,16 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/BBVA/kapow/command" "github.com/BBVA/kapow/internal/cmd"
) )
func main() { func main() {
var kapowCmd = &cobra.Command{Use: "kapow [action]"} var kapowCmd = &cobra.Command{Use: "kapow [action]"}
kapowCmd.AddCommand(command.ServerCmd) kapowCmd.AddCommand(cmd.ServerCmd)
kapowCmd.AddCommand(command.GetCmd) kapowCmd.AddCommand(cmd.GetCmd)
kapowCmd.AddCommand(command.SetCmd) kapowCmd.AddCommand(cmd.SetCmd)
kapowCmd.AddCommand(command.RouteCmd) kapowCmd.AddCommand(cmd.RouteCmd)
err := kapowCmd.Execute() err := kapowCmd.Execute()
if err != nil { if err != nil {