...

Source file src/edge-infra.dev/cmd/edge/bannerctl/main.go

Documentation: edge-infra.dev/cmd/edge/bannerctl

     1  package main
     2  
     3  import (
     4  	"os"
     5  	"path/filepath"
     6  
     7  	"edge-infra.dev/pkg/edge/controllers/bannerctl"
     8  
     9  	"github.com/joho/godotenv"
    10  )
    11  
    12  func main() {
    13  	_ = godotenv.Load(filepath.Join("cmd", "bannerctl", ".env")) //if you want to test using env file in intellij
    14  	if err := bannerctl.Run(); err != nil {
    15  		os.Exit(1)
    16  	}
    17  }
    18  

View as plain text