Skip to content

Commit

Permalink
cmd: Add version to banner
Browse files Browse the repository at this point in the history
Close #987

Signed-off-by: arekkas <[email protected]>
  • Loading branch information
arekkas committed Aug 21, 2018
1 parent fed7823 commit 402f652
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions cmd/server/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@

package server

var banner = `Thank you for using ORY Hydra!
func banner(version string) string {
return `Thank you for using ORY Hydra ` + version + `!
Take security seriously and subscribe to the ORY newsletter. Stay on top of new patches and security insights.
Take security seriously and subscribe to the ORY Security Newsletter. Stay on top of new patches and security insights.
>> Subscribe now: http://eepurl.com/di390P << `
>> Subscribe now: http://eepurl.com/di390P <<`
}
2 changes: 1 addition & 1 deletion cmd/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func RunServeAll(c *config.Config) func(cmd *cobra.Command, args []string) {
}

func setup(c *config.Config, cmd *cobra.Command, args []string, name string) (handler *Handler, frontend, backend *httprouter.Router, middlewares []negroni.Handler) {
fmt.Println(banner)
fmt.Println(banner(c.BuildVersion))

frontend = httprouter.New()
backend = httprouter.New()
Expand Down

0 comments on commit 402f652

Please sign in to comment.