2024-10-27 06:10:27 +01:00
|
|
|
package util
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
Copyright 2024 Jonas Kaninda.
|
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may get a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*/
|
|
|
|
|
import (
|
2024-11-11 08:50:34 +01:00
|
|
|
"fmt"
|
2024-10-27 06:10:27 +01:00
|
|
|
)
|
|
|
|
|
|
2024-11-10 07:56:46 +01:00
|
|
|
const ConfigVersion = "1.0"
|
|
|
|
|
|
2024-11-11 08:50:34 +01:00
|
|
|
var Version = "development"
|
|
|
|
|
var buildTime string
|
|
|
|
|
var gitCommit string
|
|
|
|
|
|
|
|
|
|
func FullVersion() {
|
|
|
|
|
fmt.Printf("Goma Gateway version: %s\n", Version)
|
|
|
|
|
fmt.Printf("Configuration version: %s\n", ConfigVersion)
|
|
|
|
|
fmt.Printf("Build time: %s\n", buildTime)
|
|
|
|
|
fmt.Printf("Git commit: %s\n", gitCommit)
|
2024-10-27 06:10:27 +01:00
|
|
|
}
|
2024-10-30 04:52:49 +01:00
|
|
|
|
2024-10-30 18:01:53 +01:00
|
|
|
const MainExample = "Initialize config: config init --output config.yml\n" +
|
2024-10-30 04:52:49 +01:00
|
|
|
"Start server: server \n" +
|
2024-11-18 12:58:49 +01:00
|
|
|
"Start server with custom config file: server --config config.yml \n" +
|
2024-11-18 14:54:05 +01:00
|
|
|
"Check config file: config check --config config.yml"
|