INNER CODE UNIT · Go

getFileList

shenwei356/rush · cobra_helper.go:39

func getFileList(args []string) []string {
	files := []string{}
	if len(args) == 0 {
		files = append(files, "-")
	} else {
		for _, file := range files {
			if file == "-" {
				continue
			}
			if _, err := os.Stat(file); os.IsNotExist(err) {
				checkError(err)
			}
		}
		files = args
	}
	return files
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…