Rework directory structure
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/BBVA/kapow/client"
|
||||
"github.com/BBVA/kapow/internal/client"
|
||||
|
||||
gock "gopkg.in/h2non/gock.v1"
|
||||
)
|
||||
@@ -1,4 +1,4 @@
|
||||
package command
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"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
|
||||
@@ -1,4 +1,4 @@
|
||||
package command
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -1,4 +1,4 @@
|
||||
package command
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"errors"
|
||||
@@ -1,4 +1,4 @@
|
||||
package command
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -1,4 +1,4 @@
|
||||
package command
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"errors"
|
||||
@@ -6,16 +6,16 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/BBVA/kapow/command"
|
||||
"github.com/BBVA/kapow/internal/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var kapowCmd = &cobra.Command{Use: "kapow [action]"}
|
||||
|
||||
kapowCmd.AddCommand(command.ServerCmd)
|
||||
kapowCmd.AddCommand(command.GetCmd)
|
||||
kapowCmd.AddCommand(command.SetCmd)
|
||||
kapowCmd.AddCommand(command.RouteCmd)
|
||||
kapowCmd.AddCommand(cmd.ServerCmd)
|
||||
kapowCmd.AddCommand(cmd.GetCmd)
|
||||
kapowCmd.AddCommand(cmd.SetCmd)
|
||||
kapowCmd.AddCommand(cmd.RouteCmd)
|
||||
|
||||
err := kapowCmd.Execute()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user