fix(version): command line flag

This commit is contained in:
2024-03-30 00:37:51 +00:00
parent 3bdca8c540
commit 6092629cb4
4 changed files with 18 additions and 7 deletions
-3
View File
@@ -79,7 +79,6 @@ type CronSchedule struct {
func SetVersion(version string) {
version = strings.TrimRight(version, versionTrimRightCutSet)
viper.Set(WingmateVersion, version)
wingmate.Log().Info().Msgf("starting wingmate version %s", version)
}
func Read() (*Config, error) {
@@ -91,8 +90,6 @@ func Read() (*Config, error) {
viper.SetDefault(PidProxyPathConfig, PidProxyPathDefault)
viper.SetDefault(ExecPathConfig, ExecPathDefault)
ParseFlags()
var (
dirent []os.DirEntry
err error