Skip to content

Commit

Permalink
add debug option
Browse files Browse the repository at this point in the history
  • Loading branch information
moutonjeremy committed Mar 13, 2021
1 parent e26dc37 commit 05e74d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ var (
Organizations cli.StringSlice
ApiUrl string
}
Port int
Port int
Debug bool
)

// InitConfiguration => set configuration from env vars or command parameters
Expand Down Expand Up @@ -61,5 +62,11 @@ func InitConfiguration() []cli.Flag {
Usage: "List all repositories you want get informations. Format <orga>/<repo>,<orga>/<repo2>,<orga>/<repo3> (like test/test)",
Destination: &Github.Repositories,
},
&cli.BoolFlag{
Name: "debug_profile",
EnvVars: []string{"DEBUG_PROFILE"},
Usage: "Expose pprof information on /debug/pprof/",
Destination: &Debug,
},
}
}

0 comments on commit 05e74d0

Please sign in to comment.