2021-10-30 10:19:16 +02:00
|
|
|
package endpoints
|
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- *
|
|
|
|
* IMPORTS
|
|
|
|
* ---------------------------------------------------------------- */
|
|
|
|
|
|
|
|
import (
|
|
|
|
"ads/internal/core/logging"
|
|
|
|
"ads/internal/setup"
|
2021-11-02 09:07:04 +01:00
|
|
|
"ads/internal/setup/cli"
|
2021-10-30 10:19:16 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- *
|
|
|
|
* ENDPOINT version
|
|
|
|
* ---------------------------------------------------------------- */
|
|
|
|
|
|
|
|
func Version() {
|
|
|
|
logging.SetForce(true)
|
|
|
|
logging.LogPlain(setup.Version())
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- *
|
|
|
|
* ENDPOINT help
|
|
|
|
* ---------------------------------------------------------------- */
|
|
|
|
|
|
|
|
func Help() {
|
|
|
|
logging.SetForce(true)
|
2021-11-02 09:07:04 +01:00
|
|
|
cli.ParseCli([]string{}) // <- generiere leere Instanz für Parser, um voll Hilfsanleitug zu zeigen
|
2021-10-30 10:19:16 +02:00
|
|
|
logging.LogPlain(
|
|
|
|
"",
|
|
|
|
setup.Logo(),
|
2021-11-02 09:07:04 +01:00
|
|
|
// setup.Help(),
|
|
|
|
cli.Parser.Usage(nil),
|
2021-10-30 10:19:16 +02:00
|
|
|
"",
|
|
|
|
)
|
|
|
|
}
|