mirror of
https://github.com/MickMake/GoSungrow.git
synced 2025-03-25 17:11:43 +01:00
48 lines
1.1 KiB
Go
48 lines
1.1 KiB
Go
package cmd
|
|
|
|
import "time"
|
|
|
|
|
|
//goland:noinspection SpellCheckingInspection
|
|
const (
|
|
DefaultBinaryName = "GoSungrow"
|
|
EnvPrefix = "SUNGROW"
|
|
defaultConfigFile = "config.json"
|
|
defaultTokenFile = "AuthToken.json"
|
|
|
|
flagConfigFile = "config"
|
|
flagDebug = "debug"
|
|
flagQuiet = "quiet"
|
|
|
|
flagApiUrl = "host"
|
|
flagApiTimeout = "timeout"
|
|
flagApiUsername = "user"
|
|
flagApiPassword = "password"
|
|
flagApiAppKey = "appkey"
|
|
flagApiLastLogin = "token-expiry"
|
|
flagApiOutputType = "out"
|
|
|
|
flagMqttUsername = "mqtt-user"
|
|
flagMqttPassword = "mqtt-password"
|
|
flagMqttHost = "mqtt-host"
|
|
flagMqttPort = "mqtt-port"
|
|
|
|
flagGoogleSheet = "google-sheet"
|
|
flagGoogleSheetUpdate = "update"
|
|
|
|
flagGitUsername = "git-username"
|
|
flagGitPassword = "git-password"
|
|
flagGitKeyFile = "git-sshkey"
|
|
flagGitToken = "git-token"
|
|
flagGitRepo = "git-repo"
|
|
flagGitRepoDir = "git-dir"
|
|
flagGitDiffCmd = "diff-cmd"
|
|
|
|
defaultHost = "https://augateway.isolarcloud.com"
|
|
defaultUsername = "harry@potter.net"
|
|
defaultPassword = "hogwarts"
|
|
defaultApiAppKey = "93D72E60331ABDCDC7B39ADC2D1F32B3"
|
|
|
|
defaultTimeout = time.Duration(time.Second * 30)
|
|
)
|