diff --git a/cmd/init.go b/cmd/init.go index c998235..e94ab53 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -8,8 +8,8 @@ import ( "os" "strings" - "git.home.m-and-m.ovh/mderasse/boot/helpers" - "git.home.m-and-m.ovh/mderasse/boot/helpers/api_type" + "git.home.m-and-m.ovh/mderasse/gouick/helpers" + "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_type" "github.com/spf13/cobra" log "github.com/sirupsen/logrus" diff --git a/cmd/root.go b/cmd/root.go index 455d5f7..19dffd2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -7,7 +7,7 @@ package cmd import ( "os" - "git.home.m-and-m.ovh/mderasse/boot/helpers/dependencies" + "git.home.m-and-m.ovh/mderasse/gouick/helpers/dependencies" "github.com/spf13/cobra" log "github.com/sirupsen/logrus" diff --git a/cmd/upgrade.go b/cmd/upgrade.go index 54e495e..6f3197e 100644 --- a/cmd/upgrade.go +++ b/cmd/upgrade.go @@ -7,7 +7,7 @@ package cmd import ( "github.com/spf13/cobra" - "git.home.m-and-m.ovh/mderasse/boot/helpers" + "git.home.m-and-m.ovh/mderasse/gouick/helpers" log "github.com/sirupsen/logrus" ) diff --git a/go.mod b/go.mod index 4e5bd25..40bcb97 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.home.m-and-m.ovh/mderasse/boot +module git.home.m-and-m.ovh/mderasse/gouick go 1.17 diff --git a/helpers/api_type/api_type.go b/helpers/api_type/api_type.go index 4160f02..11678f4 100644 --- a/helpers/api_type/api_type.go +++ b/helpers/api_type/api_type.go @@ -3,9 +3,9 @@ package api_type import ( "github.com/juju/errors" - "git.home.m-and-m.ovh/mderasse/boot/helpers/api_type/gin_gonic" - "git.home.m-and-m.ovh/mderasse/boot/helpers/api_type/go_swagger" - "git.home.m-and-m.ovh/mderasse/boot/helpers/api_type/mojolicious" + "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_type/gin_gonic" + "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_type/go_swagger" + "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_type/mojolicious" ) func GetApiType(in ApiTypeName) (ApiTypeInterface, error) { diff --git a/helpers/api_type/base/get_user_input.go b/helpers/api_type/base/get_user_input.go new file mode 100644 index 0000000..966d6d8 --- /dev/null +++ b/helpers/api_type/base/get_user_input.go @@ -0,0 +1,7 @@ +package base + +import "git.home.m-and-m.ovh/mderasse/gouick/helpers/structure" + +func (a ApiType) GetUserInput() (*structure.UserInputParams, error) { + return nil, nil +} diff --git a/helpers/api_type/gin_gonic/api_type.go b/helpers/api_type/gin_gonic/api_type.go index d77690f..b393d99 100644 --- a/helpers/api_type/gin_gonic/api_type.go +++ b/helpers/api_type/gin_gonic/api_type.go @@ -1,6 +1,6 @@ package gin_gonic -import "git.home.m-and-m.ovh/mderasse/boot/helpers/api_type/base" +import "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_type/base" // ApiType type ApiType struct { diff --git a/helpers/api_type/go_swagger/api_type.go b/helpers/api_type/go_swagger/api_type.go index bc35be2..60b7107 100644 --- a/helpers/api_type/go_swagger/api_type.go +++ b/helpers/api_type/go_swagger/api_type.go @@ -1,6 +1,6 @@ package go_swagger -import "git.home.m-and-m.ovh/mderasse/boot/helpers/api_type/base" +import "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_type/base" // ApiType type ApiType struct { diff --git a/helpers/api_type/interface.go b/helpers/api_type/interface.go index f0cd944..535c426 100644 --- a/helpers/api_type/interface.go +++ b/helpers/api_type/interface.go @@ -1,5 +1,8 @@ package api_type +import "git.home.m-and-m.ovh/mderasse/gouick/helpers/structure" + // ApiTypeInterface type ApiTypeInterface interface { + GetUserInput() (*structure.UserInputParams, error) } diff --git a/helpers/api_type/mojolicious/api_type.go b/helpers/api_type/mojolicious/api_type.go index e545a65..005507b 100644 --- a/helpers/api_type/mojolicious/api_type.go +++ b/helpers/api_type/mojolicious/api_type.go @@ -1,6 +1,6 @@ package mojolicious -import "git.home.m-and-m.ovh/mderasse/boot/helpers/api_type/base" +import "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_type/base" // ApiType type ApiType struct { diff --git a/helpers/dependencies/golang.go b/helpers/dependencies/golang.go index abae814..8926ea3 100644 --- a/helpers/dependencies/golang.go +++ b/helpers/dependencies/golang.go @@ -12,7 +12,7 @@ import ( "github.com/blang/semver" "github.com/juju/errors" - "git.home.m-and-m.ovh/mderasse/boot/helpers" + "git.home.m-and-m.ovh/mderasse/gouick/helpers" log "github.com/sirupsen/logrus" ) diff --git a/helpers/input.go b/helpers/input.go index 8690d5c..fca7ecb 100644 --- a/helpers/input.go +++ b/helpers/input.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "git.home.m-and-m.ovh/mderasse/boot/helpers/api_type" + "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_type" log "github.com/sirupsen/logrus" ) diff --git a/helpers/structure/api_type.go b/helpers/structure/api_type.go new file mode 100644 index 0000000..d2c4529 --- /dev/null +++ b/helpers/structure/api_type.go @@ -0,0 +1,5 @@ +package structure + +// UserInputParams +type UserInputParams struct { +} diff --git a/main.go b/main.go index a8e1251..25a1cfa 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ Copyright © 2022 Matthieu Derasse */ package main -import "git.home.m-and-m.ovh/mderasse/boot/cmd" +import "git.home.m-and-m.ovh/mderasse/gouick/cmd" func main() { cmd.Execute()