Files
platiparser/cmd/cli/main.go
dilap54 3bbc6a0baa
All checks were successful
Build and push image / deploy (push) Successful in 1m44s
add parsing sumpays
2023-12-27 00:15:55 +03:00

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)
}
}