chore(healthcheck): remove unused cli args
This commit is contained in:
		
							parent
							
								
									198fcc3c86
								
							
						
					
					
						commit
						17f098a6dc
					
				|  | @ -41,11 +41,9 @@ func setupSlog() { | ||||||
| var ( | var ( | ||||||
| 	rootDir           string | 	rootDir           string | ||||||
| 	repoSize          float64 | 	repoSize          float64 | ||||||
| 	localList         string |  | ||||||
| 	checkFileNameList string | 	checkFileNameList string | ||||||
| 	checkFileSumList  string | 	checkFileSumList  string | ||||||
| 	metaFile          []string | 	metaFile          []string | ||||||
| 	gitWhitelist      []string |  | ||||||
| 	confPath          string | 	confPath          string | ||||||
| 	showVersion       *bool | 	showVersion       *bool | ||||||
| 	Version           string | 	Version           string | ||||||
|  | @ -55,13 +53,9 @@ func init() { | ||||||
| 	showVersion = flag.Bool("version", false, "print current version") | 	showVersion = flag.Bool("version", false, "print current version") | ||||||
| 	flag.StringVar(&rootDir, "root", ".", "root dir for forbidden files check") | 	flag.StringVar(&rootDir, "root", ".", "root dir for forbidden files check") | ||||||
| 	flag.Float64Var(&repoSize, "repoSize", 2, "maximum size of the repo in MiB") | 	flag.Float64Var(&repoSize, "repoSize", 2, "maximum size of the repo in MiB") | ||||||
| 	// TODO: remove localList, it is only for backward compatibility now
 |  | ||||||
| 	flag.StringVar(&localList, "localList", "", "local file list for non-ascii file check") |  | ||||||
| 	flag.StringVar(&checkFileNameList, "checkFileNameList", "", "comma-separated list of files to check") | 	flag.StringVar(&checkFileNameList, "checkFileNameList", "", "comma-separated list of files to check") | ||||||
| 	flag.StringVar(&checkFileSumList, "checkFileSumList", "", "comma-separated list of expected checksums") | 	flag.StringVar(&checkFileSumList, "checkFileSumList", "", "comma-separated list of expected checksums") | ||||||
| 	parseMultiValueFlag(&metaFile, "meta", "meta files to check") | 	parseMultiValueFlag(&metaFile, "meta", "meta files to check") | ||||||
| 	// TODO: remove gitWhitelist, it is only for backward compatibility now
 |  | ||||||
| 	parseMultiValueFlag(&gitWhitelist, "whitelist", "[DEPRECATED] will be ignored") |  | ||||||
| 	flag.StringVar(&confPath, "confPath", "", "path to conf file for teapot check") | 	flag.StringVar(&confPath, "confPath", "", "path to conf file for teapot check") | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -109,7 +103,6 @@ func main() { | ||||||
| 	slog.Info("start repo-health-checker", "version", Version) | 	slog.Info("start repo-health-checker", "version", Version) | ||||||
| 	slog.Debug("cli args", | 	slog.Debug("cli args", | ||||||
| 		"repoSize", repoSize, | 		"repoSize", repoSize, | ||||||
| 		"localList", localList, |  | ||||||
| 		"checkFileNameList", checkFileNameList, | 		"checkFileNameList", checkFileNameList, | ||||||
| 		"checkFileSumList", checkFileSumList, | 		"checkFileSumList", checkFileSumList, | ||||||
| 		"meta", metaFile, | 		"meta", metaFile, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user