Skip to content

Commit

Permalink
Changing module name to accurately represent module
Browse files Browse the repository at this point in the history
  • Loading branch information
hunoz committed May 27, 2023
1 parent 86ea5af commit 76b370b
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ build:
@GOOS=${GOOS} GOARCH=${GOARCH} go build -o spark-${GOOS}-${GOARCH}

run:
@GOOS=${GOOS} GOARCH=${GOARCH} go run main.go
@GOOS=${GOOS} GOARCH=${GOARCH} go run main.go $(ARGS)
4 changes: 2 additions & 2 deletions cmd/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"strings"

"github.com/fatih/color"
"github.com/hunoz/spark/cognito"
"github.com/hunoz/spark/config"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"gtech.dev/spark/cognito"
"gtech.dev/spark/config"
)

var AuthCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/change-password/change-password.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/fatih/color"
"github.com/hunoz/spark/cognito"
"github.com/hunoz/spark/config"
"github.com/spf13/cobra"
"gtech.dev/spark/cognito"
"gtech.dev/spark/config"
)

var ChangePasswordCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/first-sign-in/perform-first-sign-in.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/fatih/color"
"github.com/hunoz/spark/cognito"
"github.com/hunoz/spark/config"
"github.com/spf13/cobra"
"gtech.dev/spark/cognito"
"gtech.dev/spark/config"
)

var FirstSignInCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"os"

"github.com/fatih/color"
"github.com/hunoz/spark/config"
"github.com/manifoldco/promptui"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"gtech.dev/spark/config"
)

func getClientIdFromAllOptions() string {
Expand Down
4 changes: 2 additions & 2 deletions cmd/register-totp/register-totp.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/fatih/color"
"github.com/hunoz/spark/cognito"
"github.com/hunoz/spark/config"
"github.com/spf13/cobra"
"gtech.dev/spark/cognito"
"gtech.dev/spark/config"
)

var RegisterTotpCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/reset-password/reset-password.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/fatih/color"
"github.com/hunoz/spark/cognito"
"github.com/hunoz/spark/config"
"github.com/spf13/cobra"
"gtech.dev/spark/cognito"
"gtech.dev/spark/config"
)

var ResetPasswordCmd = &cobra.Command{
Expand Down
14 changes: 7 additions & 7 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package cmd
import (
"fmt"

"github.com/hunoz/spark/cmd/auth"
changepassword "github.com/hunoz/spark/cmd/change-password"
firstsignin "github.com/hunoz/spark/cmd/first-sign-in"
cmdInit "github.com/hunoz/spark/cmd/init"
registertotp "github.com/hunoz/spark/cmd/register-totp"
resetpassword "github.com/hunoz/spark/cmd/reset-password"
"github.com/hunoz/spark/cmd/update"
"github.com/spf13/cobra"
"gtech.dev/spark/cmd/auth"
changepassword "gtech.dev/spark/cmd/change-password"
firstsignin "gtech.dev/spark/cmd/first-sign-in"
cmdInit "gtech.dev/spark/cmd/init"
registertotp "gtech.dev/spark/cmd/register-totp"
resetpassword "gtech.dev/spark/cmd/reset-password"
"gtech.dev/spark/cmd/update"
)

var RootCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/fatih/color"
)

var CmdVersion = "1.0.2"
var CmdVersion = "1.0.3"

type Release struct {
Url string `json:"url,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion cognito/change-password.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider"
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider/types"
"github.com/fatih/color"
"github.com/hunoz/spark/config"
"github.com/manifoldco/promptui"
"gtech.dev/spark/config"
)

func changePassword(client cognitoidentityprovider.Client, configuration *config.CognitoConfig) *cognitoidentityprovider.ChangePasswordOutput {
Expand Down
2 changes: 1 addition & 1 deletion cognito/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider"
"github.com/fatih/color"
"github.com/hunoz/spark/config"
"github.com/manifoldco/promptui"
"gtech.dev/spark/config"
)

type CognitoClient struct {
Expand Down
2 changes: 1 addition & 1 deletion cognito/first-sign-in.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider"
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider/types"
"github.com/fatih/color"
"github.com/hunoz/spark/config"
"github.com/manifoldco/promptui"
"gtech.dev/spark/config"
)

func getEmailAttributeCode(client cognitoidentityprovider.Client, accessToken *string) {
Expand Down
2 changes: 1 addition & 1 deletion cognito/forgot-password.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider"
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider/types"
"github.com/fatih/color"
"github.com/hunoz/spark/config"
"github.com/manifoldco/promptui"
"gtech.dev/spark/config"
)

func forgotPassword(client cognitoidentityprovider.Client, configuration *config.CognitoConfig, username string) string {
Expand Down
2 changes: 1 addition & 1 deletion cognito/initiate-auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider"
"github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider/types"
"github.com/fatih/color"
"gtech.dev/spark/config"
"github.com/hunoz/spark/config"
)

func callCognitoInitiateAuth(client cognitoidentityprovider.Client, input cognitoidentityprovider.InitiateAuthInput, firstLogin bool) *cognitoidentityprovider.InitiateAuthOutput {
Expand Down
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"path/filepath"

"github.com/fatih/color"
"github.com/hunoz/spark/aws"
"github.com/hunoz/spark/homedir"
"github.com/pkg/errors"
"golang.org/x/exp/slices"
"gtech.dev/spark/aws"
"gtech.dev/spark/homedir"
)

type CognitoConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gtech.dev/spark
module github.com/hunoz/spark

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"gtech.dev/spark/cmd"
"github.com/hunoz/spark/cmd"
)

func main() {
Expand Down

0 comments on commit 76b370b

Please sign in to comment.