refactor(packagemanager,cli,tui): move packages in specific subfolders
This commit is contained in:
parent
11b8541630
commit
e49138fdd2
34 changed files with 18 additions and 18 deletions
18
internal/config/config.go
Normal file
18
internal/config/config.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package config
|
||||
|
||||
import (
|
||||
"system_setup_tool/internal/dotfiles"
|
||||
pm "system_setup_tool/pkg/packagemanager"
|
||||
)
|
||||
|
||||
type PackageManagerConfig struct {
|
||||
Enable bool `mapstructure:"enable"`
|
||||
Packages []string `mapstructure:"packages"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Headless bool `mapstructure:"headless"`
|
||||
Packages pm.Packages `mapstructure:"packages"`
|
||||
PackageManagers map[string]PackageManagerConfig `mapstructure:"package_managers"`
|
||||
Dotfiles dotfiles.DotfilesConfig `mapstructure:"dotfiles"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue