Skip to content

Commit 2fe9b33

Browse files
committedMar 31, 2023
fix: override go-cat title
1 parent ea0b4d6 commit 2fe9b33

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎cmd/go-cat/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func main() {
2323
&cli.StringFlag{Name: "git.username", Usage: "Username, if the Git repository requires HTTP Auth", EnvVars: []string{meta.GitUsernameEnvVar}},
2424
&cli.StringFlag{Name: "git.password", Usage: "Password, if the Git repository requires HTTP Auth", EnvVars: []string{meta.GitPasswordEnvVar}},
2525

26-
&cli.StringFlag{Name: "title", Required: false, Usage: "Title of the catalog page"},
26+
&cli.StringFlag{Name: "title", Usage: "Title of the infrastructure"},
2727
}
2828
infraFlags := []cli.Flag{
2929
&cli.StringFlag{Name: "name", Usage: "Name of the service or endpoint"},

‎ops/push.go

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func PushWithDbQueue(cfg config.GlobalConfig, queueDB string) error {
3737
return err
3838
}
3939
}
40+
infraMetaQueue.Title = cfg.Title
4041

4142
err = PushFromStorage(repo, fs, infraMetaQueue, cfg)
4243
if err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.