Skip to content

Commit

Permalink
Create a default const
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed May 17, 2021
1 parent 54d4b2b commit e15a3b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/skpr-crond/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

var (
cliConfig = kingpin.Flag("config", "Path to the crond config file.").Short('c').Default("/etc/skpr/crond/tasks.yml").String()
cliConfig = kingpin.Flag("config", "Path to the crond config file.").Short('c').Default(config.DefaultFilePath).String()
)

func main() {
Expand Down
2 changes: 2 additions & 0 deletions pkg/config/types.go → pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package config

const DefaultFilePath = "/etc/skpr/crond/tasks.yml"

type Tasks map[string]Task

type Task struct {
Expand Down

0 comments on commit e15a3b9

Please sign in to comment.