Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintConfig ¶
func PrintConfig(cli CLI)
Types ¶
type CLI ¶
type CLI struct { Config kong.ConfigFlag `name:"config" env:"CONFIG" help:"path to a custom config file" json:"config"` Host string `` /* 134-byte string literal not displayed */ Port uint16 `name:"port" default:"7766" env:"PORT" help:"port (range from 0 to 65535) to listen on" json:"port"` Cert string `name:"cert" default:"" env:"CERT" help:"path to TLS certificate file. If none is given, plain TCP is used" json:"cert"` Key string `` /* 139-byte string literal not displayed */ Password string `name:"password" default:"" env:"PASSWORD" help:"general server password for client connections" json:"password"` DBPath string `name:"dbpath" default:"./.db/" env:"DBPATH" help:"path to where database files are stored" json:"dbpath"` DBUpdateInterval uint64 `` /* 146-byte string literal not displayed */ DBWaitTimeout uint64 `` /* 138-byte string literal not displayed */ Debug bool `name:"debug" env:"DEBUG" help:"whether to log debugging entries" json:"debug"` }
func ParseCommandArgs ¶
func ParseCommandArgs() CLI
Parses command arguments, environment variables and config file in case one is given. Order of precedence is: environment variables < config file < command arguments
Click to show internal directories.
Click to hide internal directories.