Rework directory structure
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
This commit is contained in:
@@ -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"
|
||||||
)
|
)
|
||||||
@@ -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,4 +1,4 @@
|
|||||||
package command
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package command
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package command
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package command
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user