refactor: seperate files, function and structs into seperate packages
This commit is contained in:
parent
7f951585c8
commit
5b7775f33e
37 changed files with 547 additions and 677 deletions
18
config/config.go
Normal file
18
config/config.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package config
|
||||
|
||||
import (
|
||||
"system_setup_tool/dotfiles"
|
||||
pm "system_setup_tool/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