From 24891071f8bca1db1a135d6c4ef55018522b820f Mon Sep 17 00:00:00 2001 From: netbenix Date: Sat, 6 Nov 2021 20:54:52 +0100 Subject: [PATCH] Removed Stuff --- Lotus/Checksum.go | 8 -------- Lotus/Package.go | 13 ------------- Lotus/Tags.go | 3 --- lpm-cli.go => main.go | 9 ++++----- 4 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 Lotus/Checksum.go delete mode 100644 Lotus/Package.go delete mode 100644 Lotus/Tags.go rename lpm-cli.go => main.go (86%) diff --git a/Lotus/Checksum.go b/Lotus/Checksum.go deleted file mode 100644 index f070b73..0000000 --- a/Lotus/Checksum.go +++ /dev/null @@ -1,8 +0,0 @@ -package Lotus - -type Checksum struct{ - MD5 string - SHA1 string - SHA256 string - SHA512 string -} \ No newline at end of file diff --git a/Lotus/Package.go b/Lotus/Package.go deleted file mode 100644 index 86ea623..0000000 --- a/Lotus/Package.go +++ /dev/null @@ -1,13 +0,0 @@ -package Lotus - -type Package struct { - Publisher string - Name string - Version string - Description string - Tags Tags - PackageSize int64 - Checksums Checksum - Architecture string - Dependencies []Package -} \ No newline at end of file diff --git a/Lotus/Tags.go b/Lotus/Tags.go deleted file mode 100644 index bc01084..0000000 --- a/Lotus/Tags.go +++ /dev/null @@ -1,3 +0,0 @@ -package Lotus - -type Tags []string \ No newline at end of file diff --git a/lpm-cli.go b/main.go similarity index 86% rename from lpm-cli.go rename to main.go index 59a69ab..5a8ca2d 100644 --- a/lpm-cli.go +++ b/main.go @@ -4,11 +4,11 @@ import ( "github.com/urfave/cli/v2" "lpm-cli/Commands" "lpm-cli/Informations" - "lpm-cli/Tools" - . "lpm-cli/logging" + . "lpm-cli/Logging" "os" ) + func main() { Logger.Init() @@ -26,8 +26,7 @@ func main() { }, } + err := app.Run(os.Args) - if err != nil { - Logger.Fatal(err) - } + ErrorHandler.HandleFatal(err) } \ No newline at end of file