refactor: moved internal functions to pkg and updated refs

This commit is contained in:
David Allen 2025-02-20 17:09:21 -07:00 committed by David Allen
parent 03c54cc7c1
commit e19af0ce0c
Signed by: towk
GPG key ID: 0430CDBE22619155
8 changed files with 13 additions and 9 deletions

View file

@ -4,6 +4,10 @@ import (
"fmt"
"os/user"
"github.com/OpenCHAMI/magellan/internal/cache/sqlite"
urlx "github.com/OpenCHAMI/magellan/internal/url"
magellan "github.com/OpenCHAMI/magellan/pkg"
"github.com/OpenCHAMI/magellan/pkg/auth"
"github.com/cznic/mathutil"
magellan "github.com/davidallendj/magellan/internal"
"github.com/davidallendj/magellan/internal/cache/sqlite"

View file

@ -7,8 +7,8 @@ import (
"os"
"path"
magellan "github.com/davidallendj/magellan/internal"
"github.com/davidallendj/magellan/internal/cache/sqlite"
"github.com/OpenCHAMI/magellan/internal/cache/sqlite"
magellan "github.com/OpenCHAMI/magellan/pkg"
"github.com/rs/zerolog/log"
"github.com/cznic/mathutil"

View file

@ -4,7 +4,7 @@ import (
"os"
"strings"
magellan "github.com/davidallendj/magellan/internal"
magellan "github.com/OpenCHAMI/magellan/pkg"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
@ -99,5 +99,5 @@ func init() {
checkBindFlagError(viper.BindPFlag("update.status", updateCmd.Flags().Lookup("status")))
checkBindFlagError(viper.BindPFlag("update.insecure", updateCmd.Flags().Lookup("insecure")))
rootCmd.AddCommand(UpdateCmd)
rootCmd.AddCommand(updateCmd)
}

View file

@ -4,8 +4,8 @@ import (
"fmt"
"strings"
magellan "github.com/davidallendj/magellan/internal"
"github.com/davidallendj/magellan/internal/util"
"github.com/OpenCHAMI/magellan/internal/util"
magellan "github.com/OpenCHAMI/magellan/pkg"
"github.com/jmoiron/sqlx"
)

View file

@ -22,9 +22,9 @@ import (
"flag"
magellan "github.com/davidallendj/magellan/internal"
"github.com/davidallendj/magellan/internal/util"
"github.com/davidallendj/magellan/pkg/client"
"github.com/OpenCHAMI/magellan/internal/util"
magellan "github.com/OpenCHAMI/magellan/pkg"
"github.com/OpenCHAMI/magellan/pkg/client"
"github.com/rs/zerolog/log"
)