All checks were successful
Build and push image / deploy (push) Successful in 1m44s
31 lines
403 B
Go
31 lines
403 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/joho/godotenv"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
func init() {
|
|
godotenv.Load(".env")
|
|
}
|
|
|
|
var commands = make([]*cli.Command, 0)
|
|
|
|
func main() {
|
|
s := &cli.App{
|
|
Name: "platiparser",
|
|
Commands: commands,
|
|
Before: func(c *cli.Context) error {
|
|
godotenv.Load(".env")
|
|
return nil
|
|
},
|
|
}
|
|
err := s.Run(os.Args)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|