Skip to content

Commit

Permalink
chore: simplify the construction logic in main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
medcl committed Dec 30, 2024
1 parent a83d8fc commit 708da6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
_ "expvar"
"infini.sh/framework"
"infini.sh/framework/core/module"
"infini.sh/framework/core/util"
"infini.sh/framework/modules/api"
"infini.sh/framework/modules/elastic"
"infini.sh/framework/modules/metrics"
Expand Down Expand Up @@ -80,11 +79,12 @@ func main() {
terminalHeader += (" / /_\\///_\\\\ / /\\/_\\ \\ \\/ \\/ //_\\\\\\_ _/\n")
terminalHeader += ("/ /_\\\\/ _ \\/ / //__ \\ /\\ / _ \\/ \\ \n")
terminalHeader += ("\\____/\\_/ \\_/\\/ \\__/ \\/ \\/\\_/ \\_/\\_/ \n\n")
terminalHeader += ("Web: https://github.com/infinilabs/gateway/\n\n")

terminalFooter := ""

app := framework.NewApp("gateway", "A light-weight, powerful and high-performance search gateway.",
util.TrimSpaces(config.Version), util.TrimSpaces(config.BuildNumber), util.TrimSpaces(config.LastCommitLog), util.TrimSpaces(config.BuildDate), util.TrimSpaces(config.EOLDate), terminalHeader, terminalFooter)
app := framework.NewApp("gateway", "A light-weight, powerful and high-performance search gateway, open sourced under the GNU Affero General Public License v3.0.\n\n\n",
config.Version, config.BuildNumber, config.LastCommitLog, config.BuildDate, config.EOLDate, terminalHeader, terminalFooter)

app.Init(nil)

Expand Down

0 comments on commit 708da6a

Please sign in to comment.