Skip to content

Commit

Permalink
include the flag to pass config file
Browse files Browse the repository at this point in the history
  • Loading branch information
krishanthisera committed Nov 17, 2023
1 parent c8d943a commit 20a58a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
package main

import (
"flag"
"fmt"

"github.com/krishanthisera/grender/pilot"
)

func main() {
fmt.Println("Grender is starting...")
grenderConfig, err := pilot.GenerateConfig("grender.yaml")

cfg := flag.String("config", "grender.yaml", "Path to grender config file")

grenderConfig, err := pilot.GenerateConfig(*cfg)
fmt.Print(grenderConfig)
if err != nil {
panic(err)
Expand Down

0 comments on commit 20a58a2

Please sign in to comment.