diff --git a/Tools/RegistryList.go b/Tools/RegistryList.go new file mode 100644 index 0000000..26392ce --- /dev/null +++ b/Tools/RegistryList.go @@ -0,0 +1,24 @@ +package Tools + +import ( + "os" +) + +type RegistryList struct { + Registries []string +} + +func CheckIfRegistryFileExists() bool{ + _, dirErr := os.Stat("data") + _, fileErr := os.Stat("data/registry.list") + if dirErr != nil || fileErr != nil { + return false + } + return true +} + +func LoadRegistryList(){ + if CheckIfRegistryFileExists(){ + + } +} \ No newline at end of file diff --git a/lpm-cli.go b/lpm-cli.go index 2176935..38fc60a 100644 --- a/lpm-cli.go +++ b/lpm-cli.go @@ -9,7 +9,6 @@ import ( ) func main() { - Tools.LoggerInit() Tools.InfoLogger.Printf("Lotus-PM was executed")