This commit is contained in:
Snail Mail 2024-09-17 17:46:52 +08:00
parent 7fcc55c2f8
commit 152fd0ad92
2 changed files with 3 additions and 1 deletions

View file

@ -112,7 +112,7 @@ func init() {
func initFlags() {
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "config file")
rootCmd.PersistentFlags().StringVarP(&logLevel, "log-level", "l", envOrDefaultString(appLogLevelEnv, "info"), "log level")
rootCmd.PersistentFlags().StringVarP(&logLevel, "log-level", "l", envOrDefaultString(appLogLevelEnv, "debug"), "log level")
rootCmd.PersistentFlags().StringVarP(&logFormat, "log-format", "f", envOrDefaultString(appLogFormatEnv, "console"), "log format")
rootCmd.PersistentFlags().BoolVar(&disableUpdateCheck, "disable-update-check", envOrDefaultBool(appDisableUpdateCheckEnv, false), "disable update check")
rootCmd.PersistentFlags().StringVarP(&CfgString, "config-string", "s", "", "config string")

2
makefile Normal file
View file

@ -0,0 +1,2 @@
build:
gomobile bind -target=android --androidapi 21 -o ../../android/app/mylib/hysteria.aar ./app/cmd/