Updated logger calls
This commit is contained in:
parent
8e885dd555
commit
1bd48b980f
4 changed files with 13 additions and 11 deletions
10
lpm-cli.go
10
lpm-cli.go
|
|
@ -2,15 +2,17 @@ package main
|
|||
|
||||
import (
|
||||
"github.com/urfave/cli/v2"
|
||||
"log"
|
||||
"lpm-cli/Commands"
|
||||
"lpm-cli/Informations"
|
||||
"lpm-cli/Tools"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
Tools.LoggerInit()
|
||||
|
||||
func main(){
|
||||
Tools.InfoLogger.Printf("Lotus-PM was executed")
|
||||
app := &cli.App {
|
||||
Name: "lotus-pm",
|
||||
Usage: "Lotus Package Manager",
|
||||
|
|
@ -20,12 +22,12 @@ func main(){
|
|||
Commands.PushCommand(),
|
||||
Commands.PullCommand(),
|
||||
Commands.SearchCommand(),
|
||||
Commands.ListCommand(),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
err := app.Run(os.Args)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
Tools.ErrorLogger.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in a new issue