2021-11-04 10:36:31 +01:00
|
|
|
package print
|
2021-10-30 10:19:16 +02:00
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- *
|
|
|
|
* 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)
|
2021-11-04 11:06:16 +01:00
|
|
|
logging.Plain(setup.Version())
|
2021-10-30 10:19:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ---------------------------------------------------------------- *
|
|
|
|
* 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-11-04 11:06:16 +01:00
|
|
|
logging.Plain("")
|
|
|
|
logging.Plain(setup.Logo())
|
|
|
|
// logging.Plain(setup.Help())
|
|
|
|
logging.Plain(cli.Parser.Usage(nil))
|
|
|
|
logging.Plain("")
|
2021-10-30 10:19:16 +02:00
|
|
|
}
|