refactor(packagemanager,cli,tui): move packages in specific subfolders

This commit is contained in:
Patryk Hegenberg 2025-02-04 16:11:03 +01:00
parent 11b8541630
commit e49138fdd2
34 changed files with 18 additions and 18 deletions

View file

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"log" "log"
pm "system_setup_tool/packagemanager" "system_setup_tool/internal/utils"
"system_setup_tool/utils" pm "system_setup_tool/pkg/packagemanager"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View file

@ -5,7 +5,7 @@ import (
"log" "log"
"os" "os"
"path/filepath" "path/filepath"
"system_setup_tool/tui" "system_setup_tool/internal/tui"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"

View file

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"log" "log"
"runtime" "runtime"
"system_setup_tool/utils" "system_setup_tool/internal/utils"
pm "system_setup_tool/packagemanager" pm "system_setup_tool/pkg/packagemanager"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View file

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
"sort" "sort"
"system_setup_tool/utils" "system_setup_tool/internal/utils"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"

View file

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"log" "log"
"runtime" "runtime"
"system_setup_tool/utils" "system_setup_tool/internal/utils"
pm "system_setup_tool/packagemanager" pm "system_setup_tool/pkg/packagemanager"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View file

@ -7,8 +7,8 @@ import (
"strings" "strings"
"sync" "sync"
pm "system_setup_tool/packagemanager" "system_setup_tool/internal/utils"
"system_setup_tool/utils" pm "system_setup_tool/pkg/packagemanager"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View file

@ -5,8 +5,8 @@ import (
"log" "log"
"runtime" "runtime"
"sync" "sync"
pm "system_setup_tool/packagemanager" "system_setup_tool/internal/utils"
"system_setup_tool/utils" pm "system_setup_tool/pkg/packagemanager"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View file

@ -1,8 +1,8 @@
package config package config
import ( import (
"system_setup_tool/dotfiles" "system_setup_tool/internal/dotfiles"
pm "system_setup_tool/packagemanager" pm "system_setup_tool/pkg/packagemanager"
) )
type PackageManagerConfig struct { type PackageManagerConfig struct {

View file

@ -3,11 +3,11 @@ package tui
import ( import (
"fmt" "fmt"
"log" "log"
"system_setup_tool/config" "system_setup_tool/internal/config"
"system_setup_tool/dotfiles" "system_setup_tool/internal/dotfiles"
"system_setup_tool/utils" "system_setup_tool/internal/utils"
pm "system_setup_tool/packagemanager" pm "system_setup_tool/pkg/packagemanager"
"github.com/charmbracelet/huh" "github.com/charmbracelet/huh"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"